Hello,
I want to have a bmp that fits exactly my windows, the pb is that the window is 640*480
and, i want my menu to be blended with the background and to be ALWAYS ON TOP, like if it was a 2d menu over a 3d background.
i need help with the kind of projection to use.
i’ve tried to convert a fontloader code but it don’t works.
could you take a look, i’m sure that the error(s) will be as fat as…as… as what ??
in this function i try to draw a quad that even not appears. (a placement error ?)
hello,
i finally make work this little piece of code, the problem was that first i was just draving a quad without texturing it, but the
glEnable(GL_TEXTURE) was written and when i have removed this line, it has worked (or if i don’t remove it but map a texture onto the quad)
Why wasn’t it working when texturing was enabled??
sorry for my bad english and tanks to those people which have ansvered,
Marsu
GL_TEXTURE is a constant used for changing the matrix mode, not for enabling texturing.
With glEnable use GL_TEXTURE_1D, GL_TEXTURE_2D or GL_TEXTURE_3D
also dont forget to bind your texture object with GL_TEXTURE_2D before you use it.
if you enable texturing and do not specify texture coordinates, the actual coordinate is used for all vertices (default is 0,0, so this pixel is used to cover the whole quad)