aboutsummaryrefslogblamecommitdiff
path: root/Source/Main.cpp
blob: 153e503dea8f9e4d6cac8998ea69e2747329c8a7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                      
                                      



         
          






                                           
      


















                         
          








                                             
      



        
/********************> Headers <*****/

#include "Game.h"



/********************> Globals <*****/



Game game;



/********************> main() <*****/

int 	main( int argc, char *argv[] )

	{

	
#ifdef MAC
	ToolboxInit();

	

	if ( HasAppearance() )

		RegisterAppearanceClient();
#endif
	



	game.InitGL();

	

	game.InitGame();

	

	game.EventLoop();

	

	game.Dispose();

	
#ifdef MAC
	if ( HasAppearance() )

		UnregisterAppearanceClient();

	

	FlushEvents( everyEvent, 0 );

	ExitToShell();
#endif
	

}