Alex Rivera | Logout

C++ Cross Platform Image Loader for OpenGL

Asked 2009-07-15T01:47:21.700
9

I have tried everything from SDL to DevIL, and they have all failed for various reasons.

SDL segfaults for various reasons, and DevIL is having some weird problem where even after i include IL/ilut.h and linking everything, and including the other headers, it is not defining the functions i need to load images into opengl textures (something about USE_OPEN_GL not being defined). I am asking for any other lib out there for loading bitmaps or png's into a format i can easily convert to opengl, or a solution to the devil problem.

thanks

Edit
Report

1 Answer

3

You can also try FreeImage library. It supports loading different image types and is functionally similar to DevIL, may work out of the box for you.

And about your problem with DevIL, you do not have to build ilu or ilut libraries to make DevIL functional. I would recommend you manage the OpenGL texture objects yourself, including uploading image data to OpenGL side.

answered 2010-02-06T18:35:04.137

Your Answer