Texture problem

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();
}

thanks

Assuming your image is correctly loaded and set up, you may simply have forgotten to enable texturing.

glEnable(GL_TEXTURE_2D)

And if amerio’s reply doesn’t help, check your mipmap/filtering settings. If you do not supply/generate mipmaps, make sure you use GL_NEAREST or GL_LINEAR as your GL_TEXTURE_MIN_FILTER minification filter. The default value of GL_TEXTURE_MIN_FILTER is GL_NEAREST_MIPMAP_LINEAR !

thank you JML that did it!!!