View Full Version : jpeg import

01-25-2001, 05:56 PM
Does anyone know of a simple way to import jpegs to a opengl texture? Must work on Mac and unix. Cheers.

Tim Stirling
01-27-2001, 12:24 AM
look for OpenIL (image libary). I thinck It is at www.openil.org (http://www.openil.org) or something like that. It can import and export jpegs.

01-27-2001, 06:31 AM
Well, openil does not work on a mac. Its only for windows and linux. Just looking for a simple jpeg import solution. Hopefully, one header and one c file written in standard c. I can find stuff for rgb files that work...but the modeling program I'm using generates jpegs. So, I'm in a bind. Decoding a jpeg looks pretty involved.

01-27-2001, 06:55 AM
Well I suppose the Independent JPEG Group has something usable on Macs. Do a search for IJG and mac and see what turns up.

[This message has been edited by DFrey (edited 01-27-2001).]

01-27-2001, 07:43 AM
Thanks for the tip. I think I found a mac port. It builds fine. ooh tiff,png also. Thanks..