- Timestamp:
- Jan 5, 2005, 2:05:31 AM (20 years ago)
- Location:
- orxonox/branches/parenting/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/campaign.cc
r3231 r3336 89 89 while( se != NULL && this->running) 90 90 { 91 se->displayLoadScreen();91 //se->displayLoadScreen(); 92 92 se->load(); 93 93 se->init(); 94 se->releaseLoadScreen();94 //se->releaseLoadScreen(); 95 95 se->start(); 96 96 se->destroy(); -
orxonox/branches/parenting/src/environment.cc
r3309 r3336 29 29 Environment::Environment () : WorldEntity() 30 30 { 31 //this->model = new Object("reaplow.obj");31 this->model = new Object("reaplow.obj"); 32 32 } 33 33 … … 36 36 Environment::~Environment () 37 37 { 38 //delete this->model;38 delete this->model; 39 39 } 40 40 … … 59 59 60 60 glMatrixMode(GL_MODELVIEW); 61 //this->model->draw();61 this->model->draw(); 62 62 } 63 63 -
orxonox/branches/parenting/src/orxonox.cc
r3226 r3336 123 123 int width = 640; 124 124 int height = 480; 125 Uint32 flags = SDL_HWSURFACE | SDL_OPENGL | SDL_GL_DOUBLEBUFFER; 126 127 if((screen = SDL_SetVideoMode (width, height, bpp, flags)) == NULL) 125 //Uint32 flags = SDL_HWSURFACE | SDL_OPENGL | SDL_GL_DOUBLEBUFFER; /* \todo: SDL_OPENGL doen't permit to load images*/ 126 //Uint32 flags = SDL_HWSURFACE | SDL_GL_DOUBLEBUFFER; 127 128 Uint32 videoFlags = SDL_OPENGL | SDL_HWPALETTE | SDL_RESIZABLE; 129 130 /* query SDL for information about our video hardware */ 131 const SDL_VideoInfo* videoInfo = SDL_GetVideoInfo (); 132 133 if( videoInfo == NULL) 134 { 135 printf ("Orxonox::initVideo() - Failed getting Video Info :%s\n", SDL_GetError()); 136 SDL_Quit (); 137 } 138 if( videoInfo->hw_available) 139 videoFlags |= SDL_HWSURFACE; 140 else 141 videoFlags |= SDL_SWSURFACE; 142 /* 143 if(VideoInfo -> blit_hw) 144 VideoFlags |= SDL_HWACCEL; 145 */ 146 147 if((this->screen = SDL_SetVideoMode (width, height, bpp, videoFlags)) == NULL) 128 148 { 129 printf("Could not SDL_SetVideoMode(%d, %d, %d, %d): %s\n", width, height, bpp, flags, SDL_GetError());149 printf("Could not SDL_SetVideoMode(%d, %d, %d, %d): %s\n", width, height, bpp, videoFlags, SDL_GetError()); 130 150 SDL_Quit(); 131 151 return -1; … … 139 159 140 160 // OpenGL stuff 141 // (Is this all we initialize globally???)142 161 glClearColor(0.0, 0.0, 0.0, 0.0); 143 162 glEnable(GL_DEPTH_TEST); … … 311 330 312 331 332 SDL_Surface* Orxonox::getScreen () 333 { 334 return this->screen; 335 } 313 336 314 337 -
orxonox/branches/parenting/src/orxonox.h
r3226 r3336 68 68 Camera* getCamera(); 69 69 World* getWorld(); 70 SDL_Surface* getScreen (); 70 71 71 72 //void mainLoop(); -
orxonox/branches/parenting/src/world.h
r3335 r3336 49 49 void unload (); 50 50 bool command (Command* cmd); 51 virtual void displayLoadScreen(); 52 virtual void releaseLoadScreen(); 51 53 52 54 void setTrackLen (Uint32 tracklen); … … 78 80 int debugWorldNr; 79 81 GLuint objectList; 82 SDL_Surface *loadImage; 80 83 81 84 WorldEntity* localPlayer;
Note: See TracChangeset
for help on using the changeset viewer.