• Advertisement

Archived

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

Implementing LibPNG for textures?

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