diff options
| author | icculus <icculus@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-02 21:06:00 +0000 |
|---|---|---|
| committer | icculus <icculus@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-02 21:06:00 +0000 |
| commit | e17acec1c9bec3a26d97ca2873bb77bdcb48665e (patch) | |
| tree | 26b14b6cedcb70df651c23dddbf0981970d0bd4d /Source/Main.cpp | |
| parent | 59ca62d601e30b5467f8ecd2cb7d517bc682fc12 (diff) | |
| download | blackshades-e17acec1c9bec3a26d97ca2873bb77bdcb48665e.tar.gz | |
Initial revision
git-svn-id: svn://svn.icculus.org/blackshades/trunk@2 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/Main.cpp')
| -rw-r--r-- | Source/Main.cpp | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Source/Main.cpp b/Source/Main.cpp new file mode 100644 index 0000000..3eb8803 --- /dev/null +++ b/Source/Main.cpp @@ -0,0 +1,64 @@ +/********************> Headers <*****/ + +#include "Game.h" + + + +/********************> Globals <*****/ + + + +Game game; + + + +/********************> main() <*****/ + +void main( void ) + + { + + + + ToolboxInit(); + + + + if ( HasAppearance() ) + + RegisterAppearanceClient(); + + + + + + game.InitGL(); + + + + game.InitGame(); + + + + game.EventLoop(); + + + + game.Dispose(); + + + + if ( HasAppearance() ) + + UnregisterAppearanceClient(); + + + + FlushEvents( everyEvent, 0 ); + + ExitToShell(); + + + +} + |
