- tex->bind();
-
- glEnableClientState(GL_TEXTURE_COORD_ARRAY);
- glEnableClientState(GL_VERTEX_ARRAY);
- glTexCoordPointer(2, GL_FLOAT, 4*sizeof(float), data);
- glVertexPointer(2, GL_FLOAT, 4*sizeof(float), data+2);
+ bld.texcoord(glyph.x1, glyph.y1);
+ bld.vertex(glyph.off_x, glyph.off_y);
+ bld.texcoord(glyph.x2, glyph.y1);
+ bld.vertex(glyph.off_x+glyph.w, glyph.off_y);
+ bld.texcoord(glyph.x2, glyph.y2);
+ bld.vertex(glyph.off_x+glyph.w, glyph.off_y+glyph.h);
+ bld.texcoord(glyph.x1, glyph.y2);
+ bld.vertex(glyph.off_x, glyph.off_y+glyph.h);