instead of having glClearColor (which you can only set colors with)
is there something that you can set an image with?
TIA.
This is a discussion on Is there a way to set an OpenGL Backround to an Image? within the Game Programming forums, part of the General Programming Boards category; instead of having glClearColor (which you can only set colors with) is there something that you can set an image ...
instead of having glClearColor (which you can only set colors with)
is there something that you can set an image with?
TIA.
kind of....
assuming your image is stored in "display" as unsigned bytes (or whatever you want to specify) and the screen res/image res are given by "width" and "height"....
Code:glClear(GL_COLOR_BUFFER_BIT); glRasterPos2d(-1, -1); glDrawPixels(width, height, GL_RGB, GL_UNSIGNED_BYTE, (unsigned char*)display); glFlush();