Original Post
In Lesson 43 to render a texture from free type font we are saying:
I can't understand what does this code do? We are drawing here two quads: first has all x = 0; What does this supposed to mean?
Thanks.
glBegin(GL_QUADS);
glTexCoord2d(0,0); glVertex2d(0,bitmap.rows);
glTexCoord2d(0,y); glVertex2d(0,0);
glTexCoord2d(x,y); glVertex2d(bitmap.width,0);
glTexCoord2d(x,0); glVertex2d(bitmap.width,bitmap.rows);
I can't understand what does this code do? We are drawing here two quads: first has all x = 0; What does this supposed to mean?
Thanks.