Changeset 3498 in orxonox.OLD for orxonox/branches/trackManager/src/orxonox.cc
- Timestamp:
- Mar 11, 2005, 11:59:58 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/trackManager/src/orxonox.cc
r3430 r3498 56 56 57 57 58 /* this is a singleton class to prevent duplicates */58 /** \brief this is a singleton class to prevent duplicates */ 59 59 Orxonox* Orxonox::singletonRef = 0; 60 60 61 /** 62 \returns reference or new Object of Orxonox if not existent. 63 */ 61 64 Orxonox* Orxonox::getInstance (void) 62 65 { … … 173 176 glClearColor (0.0, 0.0, 0.0, 0.0); 174 177 glEnable (GL_DEPTH_TEST); 175 176 // LIGHTING177 GLfloat lmodelAmbient[] = {.1, .1, .1, 1.0};178 GLfloat whiteLight[] = {1.0, 1.0, 1.0,1.0};179 GLfloat lightPosition[] = {10.0, 10, 19.0, 0.0};180 181 glLightfv (GL_LIGHT0, GL_DIFFUSE, whiteLight);182 glLightfv (GL_LIGHT0, GL_SPECULAR, whiteLight);183 glEnable (GL_LIGHTING);184 glEnable (GL_LIGHT0);185 glEnable (GL_DEPTH_TEST);186 glLightfv (GL_LIGHT0, GL_POSITION, lightPosition);187 glLightfv (GL_LIGHT0, GL_DIFFUSE, whiteLight);188 178 189 //glEnable (GL_TEXTURE_2D);190 // glEnable(GL_COLOR);191 // glShadeModel(GL_SMOOTH);192 193 // create camera194 //localcamera = new Camera(world); /* \todo camera/input node not used anymore*/195 196 179 return 0; 197 180 } … … 342 325 } 343 326 344 327 /** 328 \return The reference of the SDL-screen of orxonox 329 */ 345 330 SDL_Surface* Orxonox::getScreen () 346 331 { … … 348 333 } 349 334 350 335 /** 336 \brief main function 337 338 here the journey begins 339 */ 351 340 int main(int argc, char** argv) 352 341 {
Note: See TracChangeset
for help on using the changeset viewer.