Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

eko

Implementing LibPNG for textures?

This topic is 5668 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

One word: How? I want to know how to use libPNG for texturing in GL, and don''t have much of a clue how to go about it... Anyone got code that could be useful? Thanks

Share this post


Link to post
Share on other sites
Advertisement
which readme?
the one that came with libpng that I downloaded is just a bunch of makefile information...
no code...
got a link to the file you''re talking about?

Share this post


Link to post
Share on other sites
thanks for that, I should be able to write some GL code from that...
btw, whats up with the file? it keeps repeating itself...
I just stopped it when it had repeated once, but it says the file is ~20mb!
Thanks anyway

Share this post


Link to post
Share on other sites
Unless you really want to write the code yourself you may want to check out DevIL:

http://openil.sourceforge.net/

DevIL makes it very easy to load PNGs (and other file formats, if you want) into OpenGL textures.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!