----------------------------------------------------------------------------- Name: WinMain() Desc: Entry point to the program. Initializes everything, and goes into a message-processing loop. Idle time is used to render the scene. -----------------------------------------------------------------------------
| 105 | // message-processing loop. Idle time is used to render the scene. |
| 106 | //----------------------------------------------------------------------------- |
| 107 | INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR, INT ) |
| 108 | { |
| 109 | CMyD3DApplication d3dApp; |
| 110 | |
| 111 | if (__argc <= 1) |
| 112 | return 1; |
| 113 | |
| 114 | if( FAILED( d3dApp.Create( hInst ) ) ) |
| 115 | return 0; |
| 116 | |
| 117 | return d3dApp.Run(); |
| 118 | } |
| 119 | |
| 120 | |
| 121 |