- Timestamp:
- Oct 17, 2005, 10:31:00 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/element_2d.cc
r5382 r5396 686 686 projectPos+1, 687 687 projectPos+2); 688 this->absCoordinate.x = projectPos[0]/(float)GraphicsEngine::getInstance()->getResolutionX() + this->relCoordinate.x; 689 this->absCoordinate.y = projectPos[1]/(float)GraphicsEngine::getInstance()->getResolutionY() + this->relCoordinate.y; 690 this->absCoordinate.z = projectPos[2] + this->relCoordinate.z; 688 this->prevRelCoordinate.x = this->absCoordinate.x = projectPos[0] /* /(float)GraphicsEngine::getInstance()->getResolutionX() */ + this->relCoordinate.x; 689 this->prevRelCoordinate.y = this->absCoordinate.y = (float)GraphicsEngine::getInstance()->getResolutionY() - projectPos[1] + this->relCoordinate.y; 690 this->prevRelCoordinate.z = this->absCoordinate.z = projectPos[2] + this->relCoordinate.z; 691 this->bRelCoorChanged = true; 691 692 } 692 693 else -
trunk/src/lib/gui/gl_gui/glgui_pushbutton.cc
r5395 r5396 55 55 { 56 56 this->label->draw(); 57 58 57 } 59 58 -
trunk/src/world_entities/player.cc
r5395 r5396 150 150 button->show(); 151 151 button->setLabel("test"); 152 // button->setBindNode(this); 153 button->setRelCoor2D(500, 20); 152 button->setBindNode(this); 154 153 155 154 this->weaponMan = new WeaponManager(this); -
trunk/src/world_entities/weapons/crosshair.cc
r5378 r5396 67 67 this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0); 68 68 69 this->setBindNode(this);69 // this->setBindNode(this); 70 70 this->material = new Material; 71 71
Note: See TracChangeset
for help on using the changeset viewer.