PDA

View Full Version : problem in drawing a texture image ( monochrome image)



philm
03-07-2003, 09:00 AM
Hi,
after i have initialize the propertises of my texture (width, height...), i do :

gluBuild2DMipmaps(GL_TEXTURE_2D,
1,
m_Texture.GetWidthTex(),
m_Texture.GetHeightTex(),
GL_LUMINANCE,
GL_UNSIGNED_BYTE,
m_Texture.GetImageData());

the problem is that nothing is shown; but with "glDrawPixels" (with the same parameters)there is no problem.
can anyone help me plz