[SDL] SDL_CreateRGBSurface

Paulo Brandao prudencius at hotmail.com
Mon Aug 28 21:32:27 PDT 2006


thanks...

>From: "Torsten Giebl" <wizard at syntheticsw.com>
>Reply-To: "A list for developers using the SDL library. 
>(includesSDL-announce)" <sdl at libsdl.org>
>To: "A list for developers using the SDL library. (includes 
>SDL-announce)"<sdl at libsdl.org>
>Subject: Re: [SDL] SDL_CreateRGBSurface
>Date: Tue, 29 Aug 2006 01:28:19 +0200 (CEST)
>
>Hello !
>
>
> > 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?
>
>
>Look at the attached files.
>
>
>
>CU
>
>


><< tiles.cxx >>


><< tiles.h >>


>_______________________________________________
>SDL mailing list
>SDL at libsdl.org
>http://www.libsdl.org/mailman/listinfo/sdl






More information about the SDL mailing list