Small raycaster in C, allowing the user to cast light on edges and curves.
The user can draw curves by placing points on the screen. Each fragment of curve is modelled by a Cubic Bézier curve which is connecter with one another by a
The user can also move the curve as he wants by sliding the white points.
You can see examples of this graphical interface below :
In order to compile this program, you need to install the following libraries :
-
the SDL2 library (available here : don't forget to choose the version according to your OS)
-
the SDL_ttf library which isn't included in the default SDL2 library and therefore needs to be downloaded separately (available here. This library handles the use of fonts.
-
the GSL library which is a C library for numerical computations that I used to calculate cubic roots (available here).