From: Stephen J B. <sj...@li...> - 2002-01-03 22:21:47
|
On Thu, 3 Jan 2002, Carlos Vicente wrote: > I'm trying to load an image file to set it as a map for an object!!! OpenGL doesn't include any file I/O facilities - so you have to use some other library (eg libpng) to load the image into memory, then use glTexImage2D to stuff it down into the hardware. Check out the Mesa example programs to see how to do this. ---- Steve Baker (817)619-2657 (Vox/Vox-Mail) L3Com/Link Simulation & Training (817)619-2466 (Fax) Work: sj...@li... http://www.link.com Home: sjb...@ai... http://www.sjbaker.org |