Changeset 5396 in orxonox.OLD for trunk/src/lib/graphics/render2D
- Timestamp:
- Oct 17, 2005, 10:31:00 PM (19 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.