summaryrefslogtreecommitdiffstats
path: root/src/winmain.cpp
diff options
context:
space:
mode:
authoradiblol <adiblol@1tbps.org>2012-03-08 19:32:05 +0100
committeradiblol <adiblol@1tbps.org>2012-03-08 19:32:05 +0100
commita4c804b49ec872b71bd5a0167c3ad45704a3cc30 (patch)
tree8c931235247d662ca46a99695beb328fdfc8e8a8 /src/winmain.cpp
downloadcolobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.tar.gz
colobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.tar.bz2
colobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.zip
Initial commit, Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
Diffstat (limited to 'src/winmain.cpp')
-rw-r--r--src/winmain.cpp24
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();
+}
+
+