您的位置:首页 > 其它

学习Direct 3D之Cube Example

2008-07-09 16:36 253 查看
Direct 3D初始化程式步骤:

* Init window and direct3D

*/

bool InitD3D(

HINSTANCE hInstance,	//window handle

int width,				//window width

int heigth,				//window heigth

bool windowed,			//window is full

D3DDEVTYPE deviceType,	//device type

IDirect3DDevice9** device

)

{

//1.Create the main application window.

//2.Init D3D:

// Step 1: Create the IDirect3D9 object.

// Step 2: Check for hardware vp.

// Step 3: Fill out the D3DPRESENT_PARAMETERS structure.

// Step 4: Create the device.

}

/*

* message for loop

*/

int EnterMsgLoop( bool (*ptr_display)(float timeDelta) )

{

//

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: