Possible Duplicate:
C/C++ Image Loading
I need a C\C++ cross-platform library for loading/displaying images(jpg,gif,png,tga). I will use this library to display images in WinAPi/OpenGL.
Possible Duplicate:
C/C++ Image Loading
I need a C\C++ cross-platform library for loading/displaying images(jpg,gif,png,tga). I will use this library to display images in WinAPi/OpenGL.
The simplest one (and best, IMO) is stb_image. This is a single C source file that has decoders for JPG, PNG, TGA, BMP and PSD! Read the comments at the top of the file if you want to generate a header file for it.