[SDL] sprites and animation

hah coe hahcoe at hahcoe.net
Tue Nov 11 02:03:01 PST 2003


The advantage to storing images in their own surface is that
a) you don't have to calculate any rect coordinates for blitting
b) you can alter the surface and not have it affect the remaining frames

The disadvantage is that you use more memory for the descriptor portion of
the surface.

----- Original Message -----
From: "Alan Wolfe" <atrix2 at cox.net>
To: <sdl at libsdl.org>
Sent: Monday, November 10, 2003 10:01 PM
Subject: [SDL] sprites and animation


> Hey guys,
>
> Is it better to store multiple pictures per surface when you have alot of
em
> or one picture per surface?
>
> I'm talking about sprites (with multiple frames of animation) so they are
> like 32x64 on average.
>
> Thanks!
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
>





More information about the SDL mailing list