30 #define _CRT_SECURE_NO_DEPRECATE
34 int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine,
int )
42 Integrator.createEnvironment(
new laEnvironment_win32());
43 Integrator.getEnvironment()->setTitle(
"Loading...");
44 Integrator.getEnvironment()->
message(M_TRUE,
"Environment initialized");
49 Integrator.createRenderer(
new laRenderer_GL());
50 Integrator.getEnvironment()->
message(M_TRUE,
"Renderer initialized");
54 Integrator.getEnvironment()->
message(M_TRUE,
"Input devices initialized");
57 Integrator.createSound(
new laSoundManager);
58 Integrator.getEnvironment()->
message(M_TRUE,
"Sound device initialized");
67 pGame->addStage(
new stageIntro());
69 pGame->addStage(
new stageModelViewer());
70 pGame->addStage(
new stageCollisionTests());
72 pGame->setStage((
unsigned)1);
75 Integrator.createGame(pGame);
76 Integrator.getEnvironment()->
message(M_TRUE,
"Game initialized");
79 Integrator.getEnvironment()->
message(M_TRUE,
"Entering game loop");
80 Integrator.getEnvironment()->loop();
83 Integrator.getEnvironment()->
message(M_TRUE,
"Game terminated, starting cleanup");
85 Integrator.getEnvironment()->
message(M_TRUE,
"Bye.");
92 Integrator.getEnvironment()->
message(M_FALSE,
93 "The following error has occured:\n\n %s",
Collection of laStage objects.
virtual void message(M_BOOL bSilent, const char *strText,...)=0
Display message box.
Engine Sub-systems Integrator.