tex.h

来自「VC++ DEMO, used for the beginners and th」· C头文件 代码 · 共 58 行

H
58
字号
// tex.h //////////////////////////////////////////
// 描述:
// 功能:
/////////////////////////////////////////////////////////
struct ProcessInfo_t
{
	HINSTANCE hInst;
	UINT      nCmdShow;
	String_t  szClassName;
	String_t  szDlgTitle;
};

typedef struct _D3DVECTOR2
{
	float x;
	float y;
}D3DVECTOR2;

template <typename T> inline void SAFE_RELEASE(T& p)
{
	if ( p != NULL )
	{
		p->Release();
		p = 0;
	}
}
void Main_OnDestroy( HWND hWnd );
void Main_OnCommand( HWND hWnd, int iCmd, HWND hwndCtrl, UINT nCode );
void Main_OnChangeTex();
void Main_OnChangeBlendFactor();
void Main_OnChangeAddrMax();
void Main_OnChangeAddrMode();
void Main_OnSelectTex0Name();
void Main_OnSelectTex1Name();
void Main_OnSelectTex2Name();
void Main_OnChangeStageArgs();

///////////////////////////////////////////////////////////////////////////////
//Constrction.
///////////////////////////////////////////////////////////////////////////////
void InitDialogUIControls( HWND hWnd);
HRESULT CreateTexture( LPDIRECT3DDEVICE8 pd3dDevice, TCHAR* strTexture,\
                               LPDIRECT3DTEXTURE8* ppTexture, D3DFORMAT d3dFormat= D3DFMT_UNKNOWN  );
HRESULT FindMediaFile( TCHAR* strPath, TCHAR* strFilename );
void SetTextureMaps( const TCHAR* strTexture0, const TCHAR* strTexture1,\
                         const TCHAR* strTexture2 );
void UpdateStageColor( WORD stage, LONG op, LONG arg1, LONG arg2 );
void UpdateStageAlpha( WORD stage, LONG op, LONG arg1, LONG arg2 );
void UpdateUIForDeviceCapabilites();
///////////////////////////////////////////////////////////////////////////////
//Constrction.
///////////////////////////////////////////////////////////////////////////////
bool CreateDemoDialog( ProcessInfo_t * ProcessInfoPtr );
LRESULT CALLBACK WndProc( HWND hWnd,UINT Message,WPARAM wParam,LPARAM lParam);
HRESULT Initialise3DEntironment( HWND hWnd );
HRESULT Initialise3DElement();
HRESULT Render();
void Shutdown();

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?