Changeset 5978 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Dec 7, 2005, 5:51:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/crosshair.cc
r5750 r5978 70 70 this->material = new Material; 71 71 72 EventHandler::getInstance()->subscribe(this, ES_GAME, EV_MOUSE_MOTION);72 //EventHandler::getInstance()->subscribe(this, ES_GAME, EV_MOUSE_MOTION); 73 73 74 74 // center the mouse on the screen, and also hide the cursors … … 122 122 if (event.type == EV_MOUSE_MOTION) 123 123 { 124 this->setAbsCoor2D(event.x, event.y);124 //this->setAbsCoor2D(event.x, event.y); 125 125 } 126 126 } … … 157 157 &objZ ); 158 158 159 this->setAbsCoor(objX, objY, objZ);159 //this->setAbsCoor(objX, objY, objZ); 160 160 } 161 161 … … 166 166 { 167 167 glPushMatrix(); 168 glTranslatef( this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0);168 glTranslatef(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2, 0); 169 169 170 170 glRotatef(this->getAbsDir2D(), 0,0,1);
Note: See TracChangeset
for help on using the changeset viewer.