No-frills SDL2 examples

There is quite a bit of information out there about how to use SDL, a C library for basic graphics, sound, user input, timing and OpenGL support. What I couldn’t easily find, however, was a simple demonstration of the various functions and types, and how they fit together. I will be posting a series of examples to fill this void, consisting of bare-bones code examples with brief annotations, to demonstrate how the different elements are used.

Importantly, the code samples will not constitute complete programs, and will exclude error checking and handling.

For details about setting up SDL, and more compete code examples, I recommend the excellent tutorials by Lazyfoo. The best reference available for SDL is probably the SDL Wiki.

Posts in this series:

One thought on “No-frills SDL2 examples

  1. Pingback: No-frills SDL2: Basic graphics | Block Comments

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: