(C++) SDL

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) SDL

 

The SDL (an abbreviation of 'Simple Directmedia Layer') is 'a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer' [1].

 

 

 

 

 

SDL examples

 

+--------------------------------------+--------------------------------------+ | Example | Screenshot | +--------------------------------------+--------------------------------------+ | 1: moving | Example 1 | | colors | | +--------------------------------------+--------------------------------------+ | 2: showing a | Example 2 | | bitmap | | +--------------------------------------+--------------------------------------+ | 3: moving sprite over a | Example 3 | | background | | +--------------------------------------+--------------------------------------+ | 4: moving a square in a 2D OpenGL | Example 4 | | environment | | +--------------------------------------+--------------------------------------+ | 5: moving an image over a | Example 5 | | background image in a 2D OpenGL | | | environment | | +--------------------------------------+--------------------------------------+

 

Note that some of these examples are also shown for the Qt library.

 

 

 

 

 

 

 

 

 

 

 

References

 

  1. SDL homepage