Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3499 in orxonox.OLD for orxonox/branches/levelloader/src/orxonox.cc


Ignore:
Timestamp:
Mar 11, 2005, 2:55:27 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: merged updated trunk structure into levelloader branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/orxonox.cc

    r3398 r3499  
    5656
    5757
    58 /* this is a singleton class to prevent duplicates */
     58/** \brief this is a singleton class to prevent duplicates */
    5959Orxonox* Orxonox::singletonRef = 0;
    6060
     61/**
     62   \returns reference or new Object of Orxonox if not existent.
     63*/
    6164Orxonox* Orxonox::getInstance (void)
    6265{
     
    173176  glClearColor (0.0, 0.0, 0.0, 0.0);
    174177  glEnable (GL_DEPTH_TEST);
    175  
    176   // LIGHTING
    177   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);
    188178   
    189   //glEnable (GL_TEXTURE_2D);
    190   //  glEnable(GL_COLOR);
    191   //  glShadeModel(GL_SMOOTH);
    192  
    193   // create camera
    194   //localcamera = new Camera(world); /* \todo camera/input node not used anymore*/
    195  
    196179  return 0;
    197180}
     
    342325}
    343326
    344 
     327/**
     328   \return The reference of the SDL-screen of orxonox
     329*/
    345330SDL_Surface* Orxonox::getScreen ()
    346331{
     
    348333}
    349334
    350 
     335/**
     336   \brief main function
     337
     338   here the journey begins
     339*/
    351340int main(int argc, char** argv)
    352341
Note: See TracChangeset for help on using the changeset viewer.