Changeset 3771 in orxonox.OLD for orxonox/branches/textEngine/src/lib/graphics/font
- Timestamp:
- Apr 11, 2005, 12:03:28 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/graphics/font/text_engine.cc
r3770 r3771 159 159 GLdouble tmp[3]; 160 160 gluProject(x, y, z, modMat, projMat, viewPort, tmp, tmp+1, tmp+2); 161 printf("test %f %f %f,\n", tmp[0], tmp[1], tmp[2]);162 161 pos.x = tmp[0] + this->posSize.x; 163 162 pos.y = GraphicsEngine::getInstance()->getResolutionY() - tmp[1] + this->posSize.y; … … 179 178 180 179 glTexCoord2f(this->texCoord.minU, this->texCoord.minV); 181 glVertex2 i(pos.x, pos.y );180 glVertex2f(pos.x, pos.y ); 182 181 183 182 glTexCoord2f(this->texCoord.maxU, this->texCoord.minV); 184 glVertex2 i(pos.x + this->posSize.w, pos.y );183 glVertex2f(pos.x + this->posSize.w, pos.y ); 185 184 186 185 glTexCoord2f(this->texCoord.maxU, this->texCoord.maxV); 187 glVertex2 i(pos.x + this->posSize.w, pos.y + this->posSize.h);186 glVertex2f(pos.x + this->posSize.w, pos.y + this->posSize.h); 188 187 189 188 glTexCoord2f(this->texCoord.minU, this->texCoord.maxV); 190 glVertex2 i(pos.x, pos.y + this->posSize.h);189 glVertex2f(pos.x, pos.y + this->posSize.h); 191 190 192 191 glEnd();
Note: See TracChangeset
for help on using the changeset viewer.