Sunday, May 1, 2011

Resources for Beginning SDL Development

I'm currently messing around with the Simple DirectMedia Layer (SDL). For just getting going with putting a window on the screen and starting an event loop, I found this tutorial by Tim Jones to work as advertised, even though it's almost four years old. Following that, I expanded it with his OpenGL tutorial and was in business. My silly codename for this project is "NZ" -- don't ask why. So, I have four interesting files right now: Makefile, main.cc, NZ.hh and NZ.cc. These put a colourful square in the top left corner of the screen.

Makefile



main.cc



NZ.hh



NZ.cc

Run 'make' and then './main' in your terminal and you'll get something like this:

No comments:

Post a Comment