cl-sdl2 Colour Keying Tutorial

In previous tutorials you have learn’t how to display images on the screen now we will be taking these images and using colour keying which will make a single colour transparent. This is something that is used to remove the background from an item you are wanting to display such as a character in a…

cl-SDL2 Viewport Tutorial

In an earlier tutorial we swapped between two images now we will display images at the same time using viewports. To keep things simple we will use the same image and tile it across the window so that it is displayed four times but you could have different images or have it displayed more times…

cl-SDL2 Rendering tutorial

With this next tutorial we are going to stop using surfaces to display our images and begin using sdl2’s renderer. This means that we will have to make some some significant changes to our code but nothing that is too difficult. for this tutorial we will be starting with some code from an earlier tutorial…

cl-SDL2 Loading Images Tutorial

This Tutorial will continue on from cl-SDL2 Creating a Window Tutorial using code you wrote in the previous tutorial. Because of this if you have not completed the first tutorial I recommend that you do so now. There are two ways we will be loading images, the first being “load-bmp” which is part of SDL2 and…