A start on the tinygl stuff

This commit is contained in:
Joel Teichroeb 2011-05-23 15:08:27 -07:00
parent 65eb5d8ea2
commit fad79d609a
4 changed files with 53 additions and 4 deletions

View file

@ -883,9 +883,10 @@ void GfxOpenGL::drawText(int x, int y, const Common::String &text, Font *font, C
glColor3f(color.getRed()/255.f, color.getGreen()/255.f, color.getBlue()/255.f);
uint8 size = ((uint8 *)font->_sizes)[0];
GLuint texture = *((GLuint *)font->_texIds);
y += font->getBaseOffsetY();
for (uint i = 0; i < text.size(); ++i) {
uint8 character = text[i];
int w = y + font->getCharStartingLine(character) + font->getBaseOffsetY();
int w = y + font->getCharStartingLine(character);
glBindTexture(GL_TEXTURE_2D, texture);