Changeset 4782 in orxonox.OLD for orxonox/trunk/src/orxonox.cc
- Timestamp:
- Jul 3, 2005, 12:26:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r4777 r4782 69 69 this->argc = 0; 70 70 this->argv = NULL; 71 71 72 } 72 73 … … 130 131 131 132 133 // initialize everything 132 134 SDL_Init (SDL_INIT_TIMER); 133 // initialize everything134 135 if( initResources () == -1) return -1; 135 136 if( initVideo() == -1) return -1; … … 137 138 if( initInput() == -1) return -1; 138 139 if( initNetworking () == -1) return -1; 139 //printf("> Initializing world\n"); 140 // if( init_world () == -1) return -1; PB: world will be initialized when started141 140 141 // subscribe the resolutionChanged-event 142 EventHandler::getInstance()->subscribe(this, ES_GAME, EV_VIDEO_RESIZE); 142 143 return 0; 143 144 } … … 288 289 case SDL_VIDEORESIZE: 289 290 GraphicsEngine* tmpGEngine = GraphicsEngine::getInstance(); 290 tmpGEngine->resolutionChanged( &event->resize);291 tmpGEngine->resolutionChanged(event->resize); 291 292 break; 292 293 } … … 299 300 */ 300 301 void Orxonox::process(const Event &event) 301 {} 302 { 303 switch (event.type) 304 { 305 case EV_VIDEO_RESIZE: 306 GraphicsEngine::getInstance()->resolutionChanged(event.resize); 307 break; 308 } 309 310 } 302 311 303 312
Note: See TracChangeset
for help on using the changeset viewer.