pnglib problem

Hello!
I have problem concerning libpng and textures, i’ve read much about it on libpng.org, but that is too “heavy” for me (i’m quite new in C). I worked before on windows with delphi, where loading image such as jpeg, png weren’t problem due easy structure of winAPI. But now i’m working on linux and gotta use c++, however. Have anyone made “easy-like” library for reading images to use it with openGL textures? Or maybe someone could have been explain how to load PNG image into texture “easy way”… I’d be very grateful

Originally posted by sarisa:
Hello!
I have problem concerning libpng and textures, i’ve read much about it on libpng.org, but that is too “heavy” for me (i’m quite new in C). I worked before on windows with delphi, where loading image such as jpeg, png weren’t problem due easy structure of winAPI. But now i’m working on linux and gotta use c++, however. Have anyone made “easy-like” library for reading images to use it with openGL textures? Or maybe someone could have been explain how to load PNG image into texture “easy way”… I’d be very grateful

Not an answer to your question but I just want to mention that you do not have to use c/c++ but you may use object pascal to develop OpenGL apps on Linux (as I do).
If you are interested you may want to take a look at the following links: http://www.freepascal.org/ http://www.lazarus.freepascal.org/ http://nvgl.sourceforge.net/

there is libjpg for reading (and writing) jpg’s, and it is really easy to use and there’s a good tutorial at
http://www.the-labs.com/JPEG/libjpeg.html

hello

try OpenIL (http://openil.sourceforge.net)

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.