Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

lighting war

Location:
trunk/src/world_entities
Files:
2 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/**
  • trunk/src/world_entities/camera.h

    r7014 r7108  
    5454  void tick(float dt);
    5555  void apply ();
     56  void project();
    5657
    5758  void process(const Event &event);
Note: See TracChangeset for help on using the changeset viewer.