Original Post
im having trouble putting a texture on my 2d image heres the code its code from the nehe tutorials whats wrong with it i think it has to do with the gltexcoord2f cause i dont think i have them right
int DrawGLScene(GLvoid) // Here's Where We Do All The Drawing
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear Screen And Depth Buffer
glLoadIdentity(); // Reset The Current Modelview Matrix
glTranslatef(-1.5f,0.0f,-6.0f); //move left 1.5 units
glBindTexture(GL_TEXTURE_2D, texture[0]); // Select Our Texture
glBegin(GL_QUADS); // Draw A Quad
glTexCoord2f(0.0f, 1.0f); glVertex3f(-5.0f, 4.0f, 0.0f); // Top Left
glTexCoord2f(1.0f, 1.0f); glVertex3f( 5.0f, 4.0f, 0.0f); // Top Right
glTexCoord2f(1.0f, 0.0f); glVertex3f( 5.0f,-4.0f, 0.0f); // Bottom Right
glTexCoord2f(0.0f, 0.0f); glVertex3f(-5.0f,-4.0f, 0.0f); // Bottom Left
glEnd(); // Done Drawing The Quad
return TRUE; // Keep Going
}