PDA

View Full Version : How to Mapping the JPEG image?



lglabc
04-15-2003, 09:51 PM
OpenGL can use the BMP for mapping. But now I need to use the jpeg to mapping. So please tell me the details about mapping the jpeg image.
thanks!

mikael_aronsson
04-15-2003, 10:17 PM
Hi !

First of all, OpenGL cannot use BMP files, it cannot use any kind of files, you need some other library or code to load the image into memory, ones you have loaded it into memory OpenGL can use it.

There are lot's of libraries and code for doing this, check out google, just one example is:
http://rglass.tripod.com/home_page.htm

Mikael

lglabc
04-15-2003, 11:37 PM
Thanks!
I'll find them..