instead of having glClearColor (which you can only set colors with)
is there something that you can set an image with?
TIA.
Printable View
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();