SDL Demos and Tests

CxxSDL Tryout

The first tests with SDL were back in the end of 2001, but they were just compiling checks and the result of having read some simple tutorial.
Then, more than a year later, when I started studying C++, I made a small program to test both C++ and a couple of concepts exposed in some guides.
It was just a test to better understand OOP and libSDL, I haven't released any code of this, but you can see my "art" in a screenshot that I've included anyway. :)
System: Linux/Win
Language: C++
Libraries: SDL
Compiler: GCC 3.2.2
Version: 0.01
Date: 22 Apr 2003
Download: Not Released
State: Stopped

Mix

This is the code I made for the Italian tutorial on SDL_mixer library.
Basically it's just a code showing the possibilities of this library mixing samples and music and changing volume and panning.
System: Linux/Win
Language: C
Libraries: SDL
Compiler: GCC 3.3.2
Version: 1.0
Date: 29 Apr 2004
Download: tar.gz
State: Completed

Sinus Font

This one is for another Italian tutorial, this time relative to SDL_ttf library.
Inspired from classic old skool demos, I made this simple sinus scroller that I think is very nice even if it's quite simple.

Update: It has been ported to both AmigaOS4 and MorphOS!
System: Linux/Win
Language: C
Libraries: SDL
Compiler: GCC 3.3.2
Version: 1.0
Date: 28 Jun 2004
Download: tar.gz
State: Completed

SaveSurf

No screenshot available.
M3xican asked for a function to actually save a SDL surface in png because he tought it would have been a nice feature for Mars, so here it is! :-)
This little demo makes you convert every SDL_image loadable file in png and take a screenshot of what is displayed on a SDL or OpenGL screen.
System: Linux/Win
Language: C
Libraries: SDL
Compiler: GCC 4.1.1
Version: 1.3
Date: 13 October 2006
Update: 30 November 2006
Download: tar.gz
State: Completed

Demo

This one is a general SDL demo showing heavy use of direct pixel blitting of geometric shapes, threads, music, text... but it's not much tested and has many problems.
If you wanna help fixing something, you're free to download and have a look at the source, of course.
System: Linux/Win
Language: C
Libraries: SDL
Compiler: GCC 3.3.2
Version: 0.1
Date: 21 Apr 2004
Download: tar.gz
State: Bugged

Check also the programs in the SDL Examples section of the Mars: Land of No Mercy site.

ViM edited ©2002-2009 Angelo Theodorou