No subject
Wed Jan 24 21:54:03 PST 2007
rw = SDL_RWFromZZIP("data/back.bmp", "r");
to
rw = SDL_RWFromZZIP("data/back.bmp", "rb");
If that does not help, please explain the problem: does your source compile
at all? is the program crashing? does the result look ugly?
Huib-Jan
----- Original Message -----
From: Federico Berardi <berardi at ssdfe.com.ar>
To: <sdl at libsdl.org>
Sent: Wednesday, December 11, 2002 10:37 AM
Subject: [SDL] zzip and SDL_RWoops
im trying to use zzip and SDL_RWoops to load a bmp from zip files but i cant
i am using VS6 in w32
i put SDL_rwops_zzip.h and SDL_rwops_zzip.c in my project... in
my source code... y put #include "SDL_rwops_zzip.h" at the top and replace
temp2 = SDL_LoadBMP("data/back.bmp");
with...
SDL_RWops *rw;
rw = SDL_RWFromZZIP("data/back.bmp", "r");
temp2 = SDL_LoadBMP_RW(rw, 0);
SDL_FreeRW(rw);
its the only things that i want to do... i missing something? i am linking
with the dinamic library of zziplib and zzip (zziplib.lib and libz.a)
i think thats what i want to do is simple... but i can do it...
any suggest?
Fede!
More information about the SDL
mailing list