JPG loading

I would like to know how can I load JPG images because BMP images are too big. Someone can help me? thanks

Google helps me find everything. It just found this for me. I like Google

You may also may want to think about using TGA’s there are a lot of examples of loading this format out there.

Unless you are keeping the images compressed in memory, JPG will not save you anything other then disk space, over a BMP or TGA, once it is converted into a bitmap texture in memory.

Originally posted by Askrlfg:
I would like to know how can I load JPG images because BMP images are too big. Someone can help me? thanks

Thank you…my problem is saving disk space, because I need a lot of images with high resolution…I’ll see the link…thank you

TGA’s can be saved in compressed format.
The TGA loader’s I have seen support loading TGA’s in the compressed format.

Originally posted by Askrlfg:
Thank you…my problem is saving disk space, because I need a lot of images with high resolution…I’ll see the link…thank you

Have you think about using allegro + allegroGL. If you have heard about them.
Allegro includes BMP, TGA and PCX loading (plus a lot of other things )
You can also get a JPG loading add-on for allegro, which is very eay to use.

Intel’s JPEG Library (IJL) Rocks and is free for non-commercial use. A great example of using it with MFC/OpenGL can be found at http://codeguru.earthweb.com/opengl/snaptojpeg.shtml

You might be interested in DevIL ( http://www.imagelib.org )

It can load many formats (JPG, PNG, TGA, DDS, even PSD in the latest release) and is easy to use.

[This message has been edited by kehziah (edited 03-13-2002).]

Yes…use DevIL. This is what I use for loading images in my OpenGL aps. It’s easy to use, and it works on Borland :slight_smile:
www.imagelib.org

thank you all