Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 25, 2005, 3:48:55 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: extemely stupid aiming, but it works. Had to fix quite a few bugs in the process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/crosshair.cc

    r4865 r4955  
    165165  gluUnProject(position2D[0],
    166166               GraphicsEngine::getInstance()->getResolutionY()-position2D[1]-1,
    167                .99,
     167               .99,  // z
    168168               GraphicsEngine::modMat,
    169169               GraphicsEngine::projMat,
     
    183183void Crosshair::draw() const
    184184{
    185   GraphicsEngine::storeMatrices();
    186 
    187 
    188 
    189 
    190185//   glBegin(GL_TRIANGLES);
    191186//   glColor3f(1,0,0);
     
    194189//   glVertex3f(objX, objY, objZ+1);
    195190//   glEnd();
    196 
    197   this->debugDraw();
    198 
    199   GraphicsEngine::enter2DMode();
     191  glPushMatrix();
    200192  GLdouble pos[3];
    201193  gluProject(this->getAbsCoor().x,
     
    221213  glVertex2f(size, size);
    222214  glEnd();
    223 
    224   GraphicsEngine::leave2DMode();
    225 }
     215  glPopMatrix();
     216
     217}
Note: See TracChangeset for help on using the changeset viewer.