Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 26, 2006, 6:47:32 PM (19 years ago)
Author:
bensch
Message:

trunk: war of the popers

Location:
trunk/src/world_entities
Files:
6 edited

Legend:

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

    r6778 r6780  
    202202  if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity()) / 25.0f;
    203203
    204   // Setting the Camera Eye, lookAt and up Vectors
     204
     205  glMatrixMode (GL_MODELVIEW);
     206  glLoadIdentity();
     207
     208 // Setting the Camera Eye, lookAt and up Vectors
    205209  gluLookAt(cameraPosition.x - delay.x, cameraPosition.y - delay.y, cameraPosition.z - delay.z,
    206210            targetPosition.x, targetPosition.y, targetPosition.z,
    207211            up.x, up.y, up.z);
    208 
    209 
    210   glMatrixMode (GL_MODELVIEW);
    211   glLoadIdentity();
    212 
    213 
    214 
    215212}
    216213
  • trunk/src/world_entities/environments/water.cc

    r6771 r6780  
    200200
    201201    SkyBox::disableCubeMap();
     202    glPopMatrix();
    202203  }
    203204}
  • trunk/src/world_entities/planet.cc

    r6696 r6780  
    130130  this->getModel(0)->draw();
    131131 // static_cast<VertexArrayModel*>(this->getModel(0))->debug();
     132
     133  glPopMatrix();
    132134}
    133135
  • trunk/src/world_entities/power_ups/laser_power_up.cc

    r6512 r6780  
    103103*/
    104104void LaserPowerUp::draw() const
    105 {  glMatrixMode(GL_MODELVIEW);
     105{
     106  glMatrixMode(GL_MODELVIEW);
    106107  glPushMatrix();
    107108  /* translate */
  • trunk/src/world_entities/power_ups/turret_power_up.cc

    r6695 r6780  
    104104*/
    105105void TurretPowerUp::draw() const
    106 {  glMatrixMode(GL_MODELVIEW);
     106{
     107  glMatrixMode(GL_MODELVIEW);
    107108  glPushMatrix();
    108109  /* translate */
  • trunk/src/world_entities/terrain.cc

    r6695 r6780  
    130130void Terrain::draw () const
    131131{
    132   glMatrixMode(GL_MODELVIEW);
    133132  glPushMatrix();
    134133
Note: See TracChangeset for help on using the changeset viewer.