This raycaster depends only upon putting a single pixel onto the screen. SDL is only used for interacting with the operating system, obtaining a window etc.
A raycaster is a 2D game but it draw something called "rays" on the 2d map, and then calculates the size of each line and the brightness from a first person distance, making it a 3D game. This is a ...