asmodehn / sdlut

SDL utility toolkit - A C++ wrapper arount SDL 1.2
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Implement SDL_image into RAGE::SDL #26

Open asmodehn opened 10 years ago

asmodehn commented 10 years ago

XorfacX: Implement SDL_image into RAGE::SDL in order to allow other image format (png, jpg, ...)

asmodehn commented 10 years ago

first 20 percent : localise all the SDL_LoadBMP() calls in the RGBSurface Class ( icon creation must then use it). then it will be quite straight forward to add more file formats...

asmodehn commented 10 years ago

Implemented the major part of it. Now the RGBSurface is created with IMG_Load if available. SDL_image is also detected within the CMake build process. Just need to see what is actually needed, and test the implementation. The last bit will be make a small test just to load a png file and display it.

asmodehn commented 10 years ago

XorfacX: The construtor RGBSurface::RGBSurface( std::string filename, const Color & colorKey )throw (std::logic_error) doesn't use IMG_Load and so it need to be corrected ;)