Changeset 6778 in orxonox.OLD for trunk/src/lib/graphics/render2D
- Timestamp:
- Jan 26, 2006, 5:49:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/element_2d.cc
r6512 r6778 820 820 else if (unlikely(this->bindNode != NULL)) 821 821 { 822 GLdouble projectPos[3] = {0 , 0,0};822 GLdouble projectPos[3] = {0.0, 0.0, 0.0}; 823 823 gluProject(this->bindNode->getAbsCoor().x, 824 824 this->bindNode->getAbsCoor().y, … … 830 830 projectPos+1, 831 831 projectPos+2); 832 // printf("%s::%s == %f %f %f :: %f %f\n", this->getClassName(), this->getName(), 833 // this->bindNode->getAbsCoor().x, 834 // this->bindNode->getAbsCoor().y, 835 // this->bindNode->getAbsCoor().z, 836 // projectPos[0], 837 // projectPos[1]); 838 832 839 this->prevRelCoordinate.x = this->absCoordinate.x = projectPos[0] /* /(float)GraphicsEngine::getInstance()->getResolutionX() */ + this->relCoordinate.x; 833 840 this->prevRelCoordinate.y = this->absCoordinate.y = (float)GraphicsEngine::getInstance()->getResolutionY() - projectPos[1] + this->relCoordinate.y;
Note: See TracChangeset
for help on using the changeset viewer.