View Full Version : [Newbie]: glaux / Bitmaps
I'd like to use bitmap-files (e.g. jpeg) for my textures. Under Win32 I could use the functions of the glaux - library. I could not find this lib on my Linux-system. Can anybody tell me how to use bitmaps with OpenGL? I don't really want to use the Linux-libs for bitmap-file-support as I like to compile the programs on Win32, too.
The Independent JPEG Group has portable code for loading and decompressing JPEGs which you can use.
You may also consider going to an easier to use format for textures such as TGA or BMP, in which case you could write your own portable loader in under 50 lines of code.
[This message has been edited by rts (edited 05-10-2001).]
05-11-2001, 06:37 AM
The libjpeg is there for you.
10-20 lines and you'll have a jpeg texture loaded.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.