PDA

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



philm
03-07-2003, 09:16 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

shinpaughp
03-07-2003, 10:45 AM
Building a mipmap does not draw it to the rendering context. You also need to use glTexImage2D and bind it and have some polygon(s) with tex coords, etc.