diff options
Diffstat (limited to 'src/winmain.cpp')
-rw-r--r-- | src/winmain.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/winmain.cpp b/src/winmain.cpp new file mode 100644 index 0000000..c4b6f5a --- /dev/null +++ b/src/winmain.cpp @@ -0,0 +1,24 @@ +// winmain.cpp
+//
+
+#define STRICT
+#include <windows.h>
+#include "D3DApp.h"
+
+
+//-----------------------------------------------------------------------------
+// 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.
+//-----------------------------------------------------------------------------
+INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
+{
+ CD3DApplication d3dApp;
+
+ if( FAILED( d3dApp.Create( hInst, strCmdLine ) ) )
+ return 0;
+
+ return d3dApp.Run();
+}
+
+
|