Very simple raytracer using SDL in C