Changeset 2105 in orxonox.OLD for orxonox/branches/chris/src/orxonox.cc
- Timestamp:
- Jul 11, 2004, 3:14:52 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/orxonox.cc
r2104 r2105 72 72 strcat (configfilename, "/.orxonox.conf");*/ 73 73 74 strcpy (configfilename, " ./orxonox.conf");74 strcpy (configfilename, "orxonox.conf"); 75 75 } 76 76 … … 119 119 int width = 640; 120 120 int height = 480; 121 Uint32 flags = SDL_ OPENGL | SDL_GL_DOUBLEBUFFER;121 Uint32 flags = SDL_HWSURFACE | SDL_OPENGL | SDL_GL_DOUBLEBUFFER; 122 122 123 123 if( (screen = SDL_SetVideoMode (width, height, bpp, flags)) == NULL) … … 187 187 { 188 188 bQuitOrxonox = true; 189 //cout << "finished garbage colletion, quitting..." << endl;190 189 } 191 190 void Orxonox::mainLoop() 192 191 { 193 192 lastframe = SDL_GetTicks(); 194 193 bQuitOrxonox = false; 195 194 // This is where everything is run 195 printf("Orxonox|Entering main loop\n"); 196 196 while( !bQuitOrxonox) 197 197 { … … 207 207 display(); 208 208 } 209 printf("Orxonox|Exiting the main loop\n"); 209 210 } 210 211 … … 244 245 } 245 246 247 bool Orxonox::system_command (Command* cmd) 248 { 249 if( !strcmp( cmd->cmd, "quit") && !cmd->bUp) 250 { 251 bQuitOrxonox = true; 252 return true; 253 } 254 } 255 246 256 void Orxonox::display () 247 257 { … … 254 264 // draw HUD 255 265 // flip buffers 256 SDL_ Flip( screen);266 SDL_GL_SwapBuffers(); 257 267 } 258 268 … … 274 284 int main (int argc, char** argv) 275 285 { 286 printf(">>> Starting Orxonox <<<\n"); 276 287 Orxonox *orx = Orxonox::getInstance(); 277 288
Note: See TracChangeset
for help on using the changeset viewer.