SDLc ("SDL Classes") is a set of C++ classes around the SDL (1.2) library.


Sep 22, 2014

Initially part of Kexx2, SDLc is now a separate library. The source code is originally from around 2000-2002, so although I've cleaned up and modernised it a bit, the style is overall fairly traditional ("C with classes").

SDLc tries to be a simple set of classes making the use of SDL in C++ a little more convenient. It does not try to hide the underlying C-API of SDL, merely augment it.


Coming soon...


Building from source

Download either the latest source code release above, or from GitHub. Note that building the source from GitHub involves slightly more work as the build scrips needs to be generated by running autoreconf -if.

To build one of the source code releases of SDLc:

  1. Install SDL-1.2, SDL_mixer, SDL_image. For Debian GNU/Linux based systems (e.g Ubuntu) this is most easily done by running

    apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev

  2. Download one of the source code releases above, uncompress and run

    make install

These commands might require root access on the machine you're installing on.