prudencius at hotmail.com
Mon Aug 28 16:05:22 PDT 2006
I have used two methods to splilt a large image loaded from disk(whith
sprite images) into various frames of my SDL_Surface frames array. The first
one I create a empty surface whith SDL_CreateRGBSurface whith dimensions of
frames. Then i blit the large image with the calculated offsets in this
image, after this i use SDL_Display format to past the image for a element
of my array.
The second is to load a template image with frames dimensions from disk,
blit the larger image, then past it for my frames array.
The first method, using SDL_CreateRBGSurface slow down the animation, why?
More information about the SDL