Jump to content
  • Advertisement
Sign in to follow this  
rosicky2005

Problem on bitmap export using texture

This topic is 4279 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For the following coding: AUX_RGBImageRec *Bitmap = NULL; Bit = auxDIBImageLoad("Data/try.bmp"); I have a Bitmap containing try.bmp now. So, now I want to put the data in "Bit" into a texture and then export the data into another AUX_RGBImageRec object called Bitmap2. Finally, data in Bitmap2 is written in another Bitmap files, say try2.bmp. What procedures should I do then? Also, how can I read and write other picture formats(e.g. jpeg) in Open GL? [Edited by - rosicky2005 on October 4, 2006 2:01:20 AM]

Share this post


Link to post
Share on other sites
Advertisement
You're using glaux. Do not use glaux. glaux is evil.

No seriously, the aux library is completely obsolete, and is one bug ridden piece of software full of instabilities, undefined behaviour, and memory leaks. It's not officially maintained anymore, so the bugs will never be fixed. The fact that this NeHe stuff still propagates its use doesn't really help either. You definitely should keep away from it.

That said, you can either write your own image loading functions (tedious and error prone), use specialised proven libraries such as libjpeg or libpng (flexible and powerful), or use some existing combined image loading library (simple and quick to implement).

Although I don't particularily like it, you can try DevIL. It seems to be quite popular here on the boards.

Share this post


Link to post
Share on other sites
Quote:
Original post by Yann L
You're using glaux. Do not use glaux. glaux is evil.

No seriously, the aux library is completely obsolete, and is one bug ridden piece of software full of instabilities, undefined behaviour, and memory leaks. It's not officially maintained anymore, so the bugs will never be fixed. The fact that this NeHe stuff still propagates its use doesn't really help either. You definitely should keep away from it.

That said, you can either write your own image loading functions (tedious and error prone), use specialised proven libraries such as libjpeg or libpng (flexible and powerful), or use some existing combined image loading library (simple and quick to implement).

Although I don't particularily like it, you can try DevIL. It seems to be quite popular here on the boards.


Then how can I find libjpeg/libpng?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!