3D Renderer in C