i tried to get in touch with c++ for the first time and used one of the vitasdk samples in order to create some basic SDL2 application. Currently, i can't get past image loading using SDL2_image, as the image format is always unsupported no matter what format and properties i use (png, jpg, bmp). The small code behind loading and rendering is:
Code: Select all
SDL_Texture* image = IMG_LoadTexture(gRenderer, path.c_str());
which throws
Code: Select all
Unsupported image format
After some research i thought to include libpng and zlib headers and use IMG_init(flags), but the application still throws and crashes.
Maybe a experienced Dev can see my mistake.