diff options
Diffstat (limited to 'src/Main.cpp')
-rw-r--r-- | src/Main.cpp | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/Main.cpp b/src/Main.cpp new file mode 100644 index 0000000..2c8f381 --- /dev/null +++ b/src/Main.cpp @@ -0,0 +1,64 @@ +/********************> Headers <*****/ + +#include "Game.h" + + + +/********************> Globals <*****/ + + + +Game game; + + + +/********************> main() <*****/ + +int main( int argc, char *argv[] ) + + { + + +#ifdef OS9 + ToolboxInit(); + + + + if ( HasAppearance() ) + + RegisterAppearanceClient(); +#endif + + + + + game.InitGL(); + + + + game.InitGame(); + + + + game.EventLoop(); + + + + game.Dispose(); + + +#ifdef OS9 + if ( HasAppearance() ) + + UnregisterAppearanceClient(); + + + + FlushEvents( everyEvent, 0 ); + + ExitToShell(); +#endif + + +} + |