Skip to content
No description, website, or topics provided.
C Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/gfx
src
Makefile
README.md
screenshot0.png
screenshot1.png
screenshot2.png
screenshot2a.png
screenshot3.png
screenshot4.png
screenshot5.png
screenshot5a.png
screenshot5b.png
screenshot6.png

README.md

This is a set of 10 small introductory C-SDL programs.
It's about the window, the window icon and surfaces.
And it shows why SDL_Renderer Infrastructure is so useful.

  • 1 - shows how to init Video/Events and create the first Window
  • 2 - use window icon
  • 2a- use custom pointer
  • 3 - initializes the screen with the color we want
  • 4 - switches 2 colors time-based
  • 5 - draws a circle
  • 5a- uses SDL_BlitSurface to show SDL Logo.
  • 5b- flipping surfaces with own functions
  • 6 - draws an RGB gradient
  • 7 - draws an RGB gradient on a resizeable window
  • 8 - animates the gradient time-based and function timing is done to see why we want the SDL_Renderer

Useful links:
SDL2 SDL-Discourse More Example Code

Screenshots:

Screenshot1
Screenshot2
Screenshot3
Screenshot4
Screenshot5
Screenshot6
Screenshot7
Screenshot8
Screenshot9
Screenshot10

Get in touch on SDL-Discourse

You can’t perform that action at this time.