- font->bind();
-
- font->getTileCoords('c', coords);
-
- glBegin(GL_QUADS);
- glTexCoord2f(coords[0], coords[1]);
- glVertex3f(-1.0, 0.0, 0.0);
- glTexCoord2f(coords[2], coords[3]);
- glVertex3f(0.0, 0.0, 0.0);
- glTexCoord2f(coords[4], coords[5]);
- glVertex3f(0.0, 1.0, 0.0);
- glTexCoord2f(coords[6], coords[7]);
- glVertex3f(-1.0, 1.0, 0.0);
- glEnd();
-
- font->getTileCoords('h', coords);
-
- glBegin(GL_QUADS);
- glTexCoord2f(coords[0], coords[1]);
- glVertex3f(0.0, 0.0, 0.0);
- glTexCoord2f(coords[2], coords[3]);
- glVertex3f(1.0, 0.0, 0.0);
- glTexCoord2f(coords[4], coords[5]);
- glVertex3f(1.0, 1.0, 0.0);
- glTexCoord2f(coords[6], coords[7]);
- glVertex3f(0.0, 1.0, 0.0);
- glEnd();
-
- font->getTileCoords('a', coords);
-
- glBegin(GL_QUADS);
- glTexCoord2f(coords[0], coords[1]);
- glVertex3f(-1.0, -1.0, 0.0);
- glTexCoord2f(coords[2], coords[3]);
- glVertex3f(0.0, -1.0, 0.0);
- glTexCoord2f(coords[4], coords[5]);
- glVertex3f(0.0, 0.0, 0.0);
- glTexCoord2f(coords[6], coords[7]);
- glVertex3f(-1.0, 0.0, 0.0);
- glEnd();
-
- font->getTileCoords('z', coords);
-
- glBegin(GL_QUADS);
- glTexCoord2f(coords[0], coords[1]);
- glVertex3(0.0, -1.0, 0.0);
- glTexCoord2f(coords[2], coords[3]);
- glVertex3(1.0, -1.0, 0.0);
- glTexCoord2f(coords[4], coords[5]);
- glVertex3(1.0, 0.0, 0.0);
- glTexCoord2f(coords[6], coords[7]);
- glVertex3(0.0, 0.0, 0.0);
- glEnd();