If i load image such as 98x*** which is 3 bytes per pixel, it will create 2 bytes padding there to make it fit in 4 bytes sequences.
I am running into problems when linking SDL_image in gcc 3 on cygwin under Windows 7. I receive the following error:
As it says above: How can I employ the image loading facilities of the SDL-image binding to Haskell to load a OpenGL texture, as you so often do in C. SDL-image supports a nice variety of image format
I want to convert an SDL_Surface, which was loaded by IMG_Load() to an other pixel format (rgba8) for an OpenGL Texture. How开发者_开发百科 can I do that?
I\'m trying to load an image file and use it as a texture for a cube. I\'m using SDL_image to do that.