Using .c/.h images exported with gimp in SDL
问题 I wonder if someone has any idea if it's possible to use .c or .h images with SDL exported in gimp. I know there is .xpm but I can't somehow enable transparency for .xpm images. I do know there are some complex ways to render .c/.h files in C, but I'd rather use SDL, since I'm trying to learn it. Thanks in advance! 回答1: gimp header export function use it's own format, providing a macro used to uncrunch it, more details here you can load raw data buffer into a sdl surface using SDL