Advertisement

Displaying images

Started by May 21, 2001 09:45 AM
1 comment, last by drumdummy 23 years, 9 months ago
Would someone mind providing me sample code on how to display an image(JPEG) as the background of a window. I''m currently rummaging through the tuturials and also an OpenGL book to guide me....additional help would be appreciated.
try TGA instead of JPEG. Then use nehe''t tga load code. Then disable depth test, draw a large textured quad using the image, and re-enable depth test. There after the image will be behind everything drawn (no matter the location. even if the obj. is behind the quad).



Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
Advertisement
There was a feature not too long back describing how to use the Intel JPEG Library to load JPEGs. An alternative to IJL is OpenIL which can open JPEG's as well as TGA and PNG's.

Hope this helps.


Stay Lucky, Graham "Mournblade" Reeds,
ICQ: 30514803
http://homepage.dtn.ntl.com/grahamr

Edited by - grahamr on May 23, 2001 6:54:31 PM

Edited by - grahamr on May 23, 2001 6:55:50 PM
Stay Lucky, Graham "Mournblade" Reeds,ICQ: 30514803http://homepage.dtn.ntl.com/grahamr/

This topic is closed to new replies.

Advertisement