Very basic question on SDL 1.3

This is possibly the dumbest question and I do apologise for not
searching the archive properly before asking.

I used SDL (1.2) a few years ago and am returning to it again. I now see
1.3 is imminent and changes the way things are done, and want to check
it’s still suitable for my basic needs.

Pretty much all I want to do is (on Windows) have access to the screen
buffer/surface (full screen or window) for plotting/reading pixels,
drawing lines, reading the keyboard/mouse, that kind of thing. Basically
an old-school DOS/home micro kind of environment for making simple games
and programs with graphical output. Synching to the vertical retrace
would be great but I remember from following the list years ago how much
of a bugbear that was.

I write in C (mingw/msys/gcc) and really have almost no time to learn a
raft of new technologies. I’m so basic I don’t even use headers/includes

  • one .c source file per program is the limit of my ability.

Given the above, am I ok sticking with SDL or is it stretching away from
me?

Thanks!
Andy

SDL 1.3 provides a compatibility layer so that you can do things the
same way as in SDL 1.2. Some things might have to change, but you can
still do everything “the 1.2 way” if you don’t care for the benefits
of 1.3’s new functionality.

If you consider using just one .c a limit to your programming (which
it truly is), you can email me off-list and I’ll give you some tips.
Using headers and multiple source files opens up new ways to think
about big programs and is not at all difficult or confusing, but very
much worth learning.

Jonny DOn Wed, May 20, 2009 at 3:09 AM, Flip Flop wrote:

This is possibly the dumbest question and I do apologise for not searching
the archive properly before asking.

I used SDL (1.2) a few years ago and am returning to it again. I now see 1.3
is imminent and changes the way things are done, and want to check it’s
still suitable for my basic needs.

Pretty much all I want to do is (on Windows) have access to the screen
buffer/surface (full screen or window) for plotting/reading pixels, drawing
lines, reading the keyboard/mouse, that kind of thing. Basically an
old-school DOS/home micro kind of environment for making simple games and
programs with graphical output. Synching to the vertical retrace would be
great but I remember from following the list years ago how much of a bugbear
that was.

I write in C (mingw/msys/gcc) and really have almost no time to learn a raft
of new technologies. I’m so basic I don’t even use headers/includes - one .c
source file per program is the limit of my ability.

Given the above, am I ok sticking with SDL or is it stretching away from me?

Thanks!
Andy


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thanks Jonny, that’s good to know. I’ll get round to improving my coding
habits one day :slight_smile: