Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: My Texture Class + A Question about an Addition..

  1. #1
    Intern Contributor
    Join Date
    Oct 2003
    Posts
    99

    My Texture Class + A Question about an Addition..

    ok folks, i have a texture class i have written to include for every openGL program i am writing. it supports .bmp and .tga files and even has an option when you instantiate your texture variable, to tell the class if you are using a big endian machine(i.e. SGI, SUN). by default its of course little endian. Now i want to add to this for even more advanced projects and to allow for more portability by adding support for .jpeg files. I have done some searching and was wondering what would i do as the first step or the first few steps in adding this support. how does .jpeg using byte swapping differ from .bmp or .tga for example. thanks in advance! btw i might be willing to give out this class if you ask nicely hehe.

  2. #2
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    87

    Re: My Texture Class + A Question about an Addition..

    Give it to me, please.

    Did it sound nice?

  3. #3
    Junior Member Regular Contributor
    Join Date
    Oct 2003
    Location
    Arlington, Tx, USA
    Posts
    179

    Re: My Texture Class + A Question about an Addition..

    give it to me plzzzzzzzz, pretty plz, with sugar on it.
    thankz in advance

    Originally posted by cutting_crew:
    ok folks, i have a texture class i have written to include for every openGL program i am writing. it supports .bmp and .tga files and even has an option when you instantiate your texture variable, to tell the class if you are using a big endian machine(i.e. SGI, SUN). by default its of course little endian. Now i want to add to this for even more advanced projects and to allow for more portability by adding support for .jpeg files. I have done some searching and was wondering what would i do as the first step or the first few steps in adding this support. how does .jpeg using byte swapping differ from .bmp or .tga for example. thanks in advance! btw i might be willing to give out this class if you ask nicely hehe.

  4. #4
    Intern Contributor
    Join Date
    Oct 2003
    Posts
    99

    Re: My Texture Class + A Question about an Addition..

    well i am waiting on my new machine at work so right now i dont have access to it. i will have to wait til i get home and put it together for you.

    -- also i was hoping if anyone could help me out on adding support to .jpeg files. anyone??

    -- oh and one other thing. right now this is version 1.0.0. this means the implementation of the class right now only does simple 2D and 3D texturing, no bump mapping, or any of that ..... yet. i thought before i get that far i would like to add .jpeg support.

    [This message has been edited by cutting_crew (edited 11-04-2003).]

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: My Texture Class + A Question about an Addition..

    DevIL
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

  6. #6
    Intern Contributor
    Join Date
    Oct 2003
    Posts
    99

    Re: My Texture Class + A Question about an Addition..

    why am i the devil?

  7. #7
    Advanced Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    612

    Re: My Texture Class + A Question about an Addition..

    i think it stands for "Developers Image Library"

  8. #8
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    87

    Re: My Texture Class + A Question about an Addition..

    cutting_crew: remember, I was first.

  9. #9
    Intern Newbie
    Join Date
    Oct 2003
    Location
    Russia, Moskow
    Posts
    38

    Re: My Texture Class + A Question about an Addition..

    Hi! I'd like to have this texture class too! And...
    I DO HAVE the code you need:

    - jpeg support;
    - tiff support(except jpeg-compressed tiffs);
    - png support;

    Post your e-mail, I'll send you tomorrow.

  10. #10
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: My Texture Class + A Question about an Addition..

    NO, he means DevIL:
    http://openil.sourceforge.net/

Posting Permissions

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