Implementation of the Graham scan using C, OpenGL and SDL2.
Compile with gcc:
gcc -g -I src/SideSrc/glad/include src/main.c src/Core/Core.c src/Graph/Graph.c src/Graphics/Graphics.c src/Input/Input.c src/Math/GrahamAlg.c src/Math/Matrix.c src/SideSrc/glad/src/glad.c -lm -lSDL2 -lSDL2main -lGLU -o convex_hull
Run:
./convex_hull
Linker options (for windows):
-lmingw32 -lSDL2main -lSDL2 -lopengl32
- Left click to place point.
- Press "1" to print list placed of points.
- Press "2" to execute algorithm.
- "R" to reset.
- Thanks!