[SDL] SDL_RWseek not working or WEBP trouble

Powero xoru at onet.pl
Mon Sep 12 00:52:42 PDT 2016


Hello,

I have trouble to put my webp image graphic put to resource file. When I put
PNG all working ok. Wep graphics showing in SDL good, but i cant read webp
from resource.

I get [WebPGetFeatures has failed] error

 Read data form file 'plikw'
 w = SDL_RWFromFile(plikw, "rb");
 i = SDL_RWseek(w, 2, RW_SEEK_SET);
 obr = IMG_Load_RW(w,1); /* IMG_LoadTyped_RW(w, 1, "PNG"); */

Anybody can help me?

here is my code:
https://gist.githubusercontent.com/anonymous/c8328d33bee1eee7f9e32aec3053ee20/raw/8412263af01296ebb349038dcdcb5f486fd08724/gistfile1.txt





--
View this message in context: http://sdl.5483.n7.nabble.com/SDL-RWseek-not-working-or-WEBP-trouble-tp47615.html
Sent from the SDL mailing list archive at Nabble.com.


More information about the SDL mailing list