Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: [Newbie]: glaux / Bitmaps

  1. #1
    Guest

    [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.

  2. #2
    Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    433

    Re: [Newbie]: glaux / Bitmaps

    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).]

  3. #3
    Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Montréal, QC, Canada
    Posts
    345

    Re: [Newbie]: glaux / Bitmaps

    The libjpeg is there for you.
    10-20 lines and you'll have a jpeg texture loaded.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •