Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7108 in orxonox.OLD for trunk/src/world_entities/camera.cc


Ignore:
Timestamp:
Feb 7, 2006, 11:22:34 PM (18 years ago)
Author:
bensch
Message:

lighting war

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/camera.cc

    r7107 r7108  
    178178    // setting up the perspective
    179179  // speed-up feature
     180  glMatrixMode (GL_MODELVIEW);
     181  glLoadIdentity();
     182
     183
     184}
     185
     186void Camera::project()
     187{
    180188  Vector cameraPosition = this->getAbsCoor();
    181189  Vector targetPosition = this->target->getAbsCoor();
    182190
    183   glMatrixMode (GL_MODELVIEW);
    184   glLoadIdentity();
    185 
    186      // Setting the Camera Eye, lookAt and up Vectors
     191       // Setting the Camera Eye, lookAt and up Vectors
    187192  gluLookAt(cameraPosition.x, cameraPosition.y, cameraPosition.z,
    188193            targetPosition.x, targetPosition.y, targetPosition.z,
    189194            this->upVector.x, this->upVector.y, this->upVector.z);
    190 
    191 
    192 }
     195}
     196
    193197
    194198/**
Note: See TracChangeset for help on using the changeset viewer.