Changeset 6772 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 26, 2006, 2:44:26 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r6426 r6772 178 178 /** 179 179 * initialize rendering perspective according to this camera 180 181 182 183 */180 * 181 * This is called immediately before the rendering cycle starts, it sets all global 182 * rendering options as well as the GL_PROJECTION matrix according to the camera. 183 */ 184 184 void Camera::apply () 185 185 { … … 193 193 this->nearClip, 194 194 this->farClip); 195 196 195 // speed-up feature 197 196 Vector cameraPosition = this->getAbsCoor(); 198 197 Vector targetPosition = this->target->getAbsCoor(); 199 198 Vector up = this->getAbsDirV(); 200 Vector delay = Vector(0, 0,0);201 if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity()) /25;199 Vector delay = Vector(0, 0, 0); 200 if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity()) / 25.0f; 202 201 203 202 // Setting the Camera Eye, lookAt and up Vectors … … 206 205 up.x, up.y, up.z); 207 206 208 // switching back to Modeling Matrix209 207 glMatrixMode (GL_MODELVIEW); 210 // this->target->getParent()->getParent()->debugDraw(0, 2, Vector(1,0,0));208 glLoadIdentity(); 211 209 } 212 210 -
trunk/src/world_entities/skybox.cc
r6695 r6772 225 225 glDisable(GL_LIGHTING); 226 226 227 glPushAttrib(GL_ENABLE_BIT); 228 glDisable(GL_FOG); 229 227 230 WorldEntity::draw(); 228 231 232 glPopAttrib(); 229 233 glPopAttrib(); 230 234
Note: See TracChangeset
for help on using the changeset viewer.