[SDL] Where SDL goes in your game
Josh Matthews
mrlachatte at gmail.com
Wed Nov 8 13:58:04 PST 2006
Well, for graphics I create a Surface class that contains the SDLSurface and
coordinates and such. Game objects will all have a Surface. Then I have
video functions such as draw_rect, draw_text, draw_surface, etc. thereby
hiding the nitty gritty SDL details. A nice way of handling input would be
to have a list of game objects with common mouse/keyboard input functions.
The input could be passed to each object to be dealt with however the object
wants.
On 11/8/06, Armond <armond.sarkisian at gmail.com> wrote:
>
> Josh Matthews <mrlachatte <at> gmail.com> writes:
>
> Hi Josh,
>
> When you say a special video interface with an over-arching input system,
> what
> do you exactly mean.
>
> Are you referring to a single struct that handles all SDL
> calls ?
>
> And also, do you put all your SDL graphics, and such in this one
> interface?
>
> Armond
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
--
Cheers,
Josh
PGP: http://revvy.box43.net/Josh_Matthews.asc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061108/07fa6789/attachment.htm>
More information about the SDL
mailing list