Changeset 5219 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Sep 23, 2005, 1:37:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/crosshair.cc
r5216 r5219 69 69 this->setRotationSpeed(5); 70 70 this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0); 71 72 this->position2D[0] = 0; 73 this->position2D[1] = 0; 71 74 72 75 this->material = new Material; … … 158 161 159 162 160 float z ;163 float z = 0.0f; 161 164 glReadPixels ((int)position2D[0], GraphicsEngine::getInstance()->getResolutionY()-(int)position2D[1]-1, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &z); 162 165 //cout << z << endl;
Note: See TracChangeset
for help on using the changeset viewer.