[SDL] Where SDL goes in your game
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
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,
> 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
> SDL mailing list
> SDL at libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL