[SDL] SDL Surface Array

DAMiEN damien_ at hotmail.com
Fri Feb 20 10:01:00 PST 2004


When I need a array of surfaces I usualy just put SDL_Surface* in an vector
like vector<SDL_Surface*>.
haven't had any problems with that...

Best ragards
Daniel Liljeberg

----- Original Message ----- 
From: "Brønnum-Hansen" <bronnum-hansen at mail.dk>
To: <sdl at libsdl.org>
Sent: Friday, February 20, 2004 6:52 PM
Subject: Re: [SDL] SDL Surface Array


It is because I want an integer to decide which image is shown. And I can't
really find any other way to do this.
I've tried SDL_Surface array[8]; but I get a lot of errors.

Best regards,
Christian

M.A. Oude Kotte <marc at solcon.nl> wrote:
> Pure out of curiosity:
> - why do you want an array of surfaces?
> - why, if you really want one, don't you just do SDL_Surface
> array[8];
> or something similar? :)
>
> Marc
>
>
> Brønnum-Hansen wrote:
> > Hi!
> >
> > Is it possible to make an array of SDL Surfaces?
> > If not, is there an alternative?
> >
> > I hope you can help me as this is a rather large problem
> for me.
> > Christian
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at libsdl.org
> > http://www.libsdl.org/mailman/listinfo/sdl
> >
> >
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl


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




More information about the SDL mailing list