- Timestamp:
- Feb 7, 2006, 11:22:34 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r7035 r7108 587 587 void GraphicsEngine::draw() const 588 588 { 589 590 LightManager::getInstance()->draw(); 589 // LightManager::getInstance()->draw(); 591 590 592 591 GraphicsEngine::storeMatrices(); -
trunk/src/story_entities/game_world.cc
r7083 r7108 420 420 // set camera 421 421 this->dataTank->localCamera->apply (); 422 this->dataTank->localCamera->project (); 423 LightManager::getInstance()->draw(); 422 424 423 425 /* draw all WorldEntiy groups */ … … 447 449 engine->draw(); 448 450 451 449 452 // draw the game ruls 450 453 if( likely(this->dataTank->gameRule != NULL)) -
trunk/src/world_entities/camera.cc
r7107 r7108 178 178 // setting up the perspective 179 179 // speed-up feature 180 glMatrixMode (GL_MODELVIEW); 181 glLoadIdentity(); 182 183 184 } 185 186 void Camera::project() 187 { 180 188 Vector cameraPosition = this->getAbsCoor(); 181 189 Vector targetPosition = this->target->getAbsCoor(); 182 190 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 187 192 gluLookAt(cameraPosition.x, cameraPosition.y, cameraPosition.z, 188 193 targetPosition.x, targetPosition.y, targetPosition.z, 189 194 this->upVector.x, this->upVector.y, this->upVector.z); 190 191 192 } 195 } 196 193 197 194 198 /** -
trunk/src/world_entities/camera.h
r7014 r7108 54 54 void tick(float dt); 55 55 void apply (); 56 void project(); 56 57 57 58 void process(const Event &event);
Note: See TracChangeset
for help on using the changeset viewer.