Changeset 4955 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/crosshair.cc
- Timestamp:
- Jul 25, 2005, 3:48:55 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/crosshair.cc
r4865 r4955 165 165 gluUnProject(position2D[0], 166 166 GraphicsEngine::getInstance()->getResolutionY()-position2D[1]-1, 167 .99, 167 .99, // z 168 168 GraphicsEngine::modMat, 169 169 GraphicsEngine::projMat, … … 183 183 void Crosshair::draw() const 184 184 { 185 GraphicsEngine::storeMatrices();186 187 188 189 190 185 // glBegin(GL_TRIANGLES); 191 186 // glColor3f(1,0,0); … … 194 189 // glVertex3f(objX, objY, objZ+1); 195 190 // glEnd(); 196 197 this->debugDraw(); 198 199 GraphicsEngine::enter2DMode(); 191 glPushMatrix(); 200 192 GLdouble pos[3]; 201 193 gluProject(this->getAbsCoor().x, … … 221 213 glVertex2f(size, size); 222 214 glEnd(); 223 224 GraphicsEngine::leave2DMode(); 225 } 215 glPopMatrix(); 216 217 }
Note: See TracChangeset
for help on using the changeset viewer.