Implementing LibPNG for textures?

Started by
4 comments, last by eko 21 years, 2 months ago
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
Advertisement
yup, got some right in the libpng readme file.
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?
right here
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
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.

This topic is closed to new replies.

Advertisement