Hi
I have a bitmap that was made in paint (windows bmp )I made the image 256x256.
When I went to render it, it did not show the picture just a white square . I did every thing I knew to do. I only drawn one
quad (front)because I only need one quad for
a 2d scroller (not a 3d cube), here is some of the code
void drawscene( )
{
glBindTexture(GL_TEXTURE_2D,g_tex[RAMP1]);
glPushMatrix();
glTranslatef(0.0f,0.0f,-5.0f);
glBegin(GL_QUADS);
glTexCoord2f(0.0f,0.0); glVertex2f(-1.0f,-1.0f);
glTexCoord2f(1.0f,0.0f); glVertex2f(1.0f,-1.0f);
glTexCoord2f(1.0f,1.0f); glVertex2f(1.0f,1.0f);
glTexCoord2f(0.0f,1.0f); glVertex2f(-1.0,1.0f);
glEnd();
glPopMatrix();
}
So can some one on puting a texture on one quare
thanks