I am a new opengl user… I am tring to figure out how to view a background image such as .jpg or .gif into the main window that we are creating…
Is there a uniqe command to do that ?
or should we just use the old AUX library ??
I found a DevIL package but it WAS too complicated… is there a DIRECT command to load such thing ?
Thank you in advance…
(( I am a student at ODU, VA … and this is NOT a homework question ))
You need a file loader. I have never used Devil, but I am sure it has loaders for these file types. It has some pretty good documentation and tutorials…so if you read those, it might not be as complicated as it seems.
You could write your own file loader…you can get the file format specs from the net… www.wotsit.org …look under the graphics files button.
Once you have the image loaded, you can use the array of bytes (or whatever) as a texture, or write them directly to the buffer (using glDrawPixels). the texture way is faster.
[This message has been edited by bumby (edited 10-08-2003).]