10-27-2006, 07:29 PM
Hi, i'm kind of new to opengl. I'm wonder if any can help me on this problem.
first i used the function:
Texture = auxDIBImageLoad(pFilename);
to load an "name.bmp" picture to Texture
then i try to use the Texture data to display directly to the screen with this function:
glRasterPos2i (50,50); // starting point to draw the data
glDrawPixels (Texture->sizeX, Texture->sizeY, GL_RGB, GL_UNSIGNED_BYTE, Texture->data);
The result output did display the picture i created in paint. Can anyone help please
first i used the function:
Texture = auxDIBImageLoad(pFilename);
to load an "name.bmp" picture to Texture
then i try to use the Texture data to display directly to the screen with this function:
glRasterPos2i (50,50); // starting point to draw the data
glDrawPixels (Texture->sizeX, Texture->sizeY, GL_RGB, GL_UNSIGNED_BYTE, Texture->data);
The result output did display the picture i created in paint. Can anyone help please