how to start with simple SDL programming?

Alan Evans ame.fedora at gmail.com
Wed Nov 18 17:43:43 UTC 2009


On Mon, Nov 16, 2009 at 5:27 AM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
>  having never done any SDL programming before (so be gentle), what
> would i need to do to get started in terms of loading framebuffer
> support for my first program?

SDL is pretty easy stuff, really. Someone with relatively little
programming experience can get basic blitting and sound to work with
just a few lines of code, mostly copy/pasted from examples.

I got started years ago with the book Programming Linux Games by John
R. Hall. This book was easy to follow with clear, incremental
examples. Later I picked up Focus On SDL by Earnest Pazera at the fire
sale when CompUSA closed shop. I'm not sure that I ever got around to
reading it.

But I don't even think you need to buy a book. Online tutorials and
code examples abound. Just google "sdl programming tutorial" and dive
in.

If what you mean by "loading frambuffer support" is actually using
hardware acceleration then that's a bit more complicated. I
half-heartedly attempted to use hardware a few years ago with no
success on my machine. But I've written several windowed and
full-screen programs that didn't suffer noticeably from the lack of
hardware acceleration.

-Alan




More information about the fedora-list mailing list