PDA

View Full Version : How to generate a Texture with a jpg resource?



dfq19
09-11-2001, 06:23 PM
I want to generate a Texture with a jpg resource(Not a jpg file),but www.ijg.org (http://www.ijg.org) only
provide a jpg file example.How to read a jpg resourece?

heiman
09-13-2001, 04:35 AM
There are several open source projects at www.sourceforge.com (http://www.sourceforge.com) that will read JPEG (and other formats) and convert them to OpenGL texture maps.

My BMGLib project uses the IJG code to read JPEGS. It will export the data in a format that can be used by OpenGL. You can download the project from my web site ( members.home.net/scottheiman/ )

Regerds,
Scott

dfq19
09-13-2001, 05:57 PM
Thank you very much!!!