When I do this
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.0f);
glVertex2f((GLfloat)0, (GLfloat)0);
glTexCoord2f(1.0f, 0.0f);
glVertex2f((GLfloat)scr_width, (GLfloat)0);
glTexCoord2f(1.0f, 1.0f);
glVertex2f((GLfloat)scr_width, (GLfloat)scr_height);
glTexCoord2f(0.0f, 1.0f);
glVertex2f((GLfloat)0, (GLfloat)scr_height);
glEnd();
Everything works fine.
But when I do this :
glBegin(GL_TRIANGLE_STRIP);
glTexCoord2f(0.0f, 0.0f);
glVertex2f((GLfloat)0, (GLfloat)0);
glTexCoord2f(1.0f, 0.0f);
glVertex2f((GLfloat)scr_width, (GLfloat)0);
glTexCoord2f(1.0f, 1.0f);
glVertex2f((GLfloat)scr_width, (GLfloat)scr_height);
glTexCoord2f(0.0f, 1.0f);
glVertex2f((GLfloat)0, (GLfloat)scr_height);
glEnd();
A part of the shape isnt texture mapped, a triangle on the left side of the quad. But I have been using this same triangle strip code to do untextured rectangles and in worked fine.
I have read many times on these forums that triangle_strip are faster than quads so I want to use them instead.
Does anyone know what I am doing wrong.
WHO DO THEY
THINK THEY''RE
FOOLING : YOU ?