Game programming/Basic SDL

Simple Directmedia Layer, SDL, is a wrapper library which abstracts away OS-specific code from the programmer.

Purpose

 * Learn the structure, and how to make a simple SDL application

Requirements

 * C knowledge
 * Dependencies installed

Dependencies

 * Go get SDL from here
 * Install it in your environment, add include and lib directories
 * Link with libSDLmain.a (SDLmain.lib) and libSDL.a (SDL.lib)

Rendering
The following code renders a blue rectangle, 128 pixels wide and 16 pixels high, 32 pixels from the left edge of the window, and 64 pixels from it's top.

Trivia

 * SDL's co-ordinates system uses pixels, with the bird at the upper-left corner of the window. The positive X direction is right, and positive Y direction is down.
 * SDL is a wrapper. This means that it uses the OSes own API for the work it does. When you're using SDL on windows, you're actually using Win32. On GNU+Linux, you use whatever desktop environment is currently running.