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) )
{
//
}