Changeset 5419 in orxonox.OLD for trunk/src/lib/graphics/text_engine
- Timestamp:
- Oct 22, 2005, 10:55:51 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/text.cc
r5418 r5419 251 251 { 252 252 glBegin(GL_QUADS); 253 253 254 glTexCoord2f(tmpGlyph->texCoord[0], tmpGlyph->texCoord[2]); 254 255 glVertex2d(posX, - tmpGlyph->bearingY * this->size); 256 255 257 glTexCoord2f(tmpGlyph->texCoord[0], tmpGlyph->texCoord[3]); 256 258 glVertex2d(posX, (tmpGlyph->height - tmpGlyph->bearingY)*this->size); 259 257 260 glTexCoord2f(tmpGlyph->texCoord[1], tmpGlyph->texCoord[3]); 258 261 glVertex2d(posX+tmpGlyph->width*this->size, (tmpGlyph->height - tmpGlyph->bearingY)*this->size); 262 259 263 glTexCoord2f(tmpGlyph->texCoord[1], tmpGlyph->texCoord[2]); 260 264 glVertex2d(posX+tmpGlyph->width*this->size, - tmpGlyph->bearingY*this->size); 265 261 266 glEnd(); 262 267 glEndList(); 263 posX += tmpGlyph-> width*this->size;268 posX += tmpGlyph->advance * this->size; 264 269 } 265 tmpText++;270 ++tmpText; 266 271 } 267 272 }
Note: See TracChangeset
for help on using the changeset viewer.