⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tex.h

📁 VC++ DEMO, used for the beginners and the amour
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -