The main idea of this project is to enable the user to draw shapes using the basic shapes editor and have somesort of legacy opengl code generated for the sketch
this tool can be used to understand and make basic shapes for computer graphics course in universities where they teach using legacy opengl and glut/freeglut
The generated code can be compiled using
gcc -lGL -lGLU -lglut
- compiling
gcc -c main.cpp -std=c++14 -O3 -Wall -m64 -D FREEGLUT_STATIC -I "PATH_TO_FREEGLUT/include"
- building
gcc main.o -o main -L "PATH_TO_FREEGLUT/lib/x64" -s -lfreeglut_static -lopengl32 -lglu32 -lgdi32 -lwinmm
if you are using MinGW-W64
gcc main.o -o main -L "PATH_TO_FREEGLUT/lib" -s -lfreeglut_static -lopengl32 -lglu32 -lgdi32 -lwinmm
if you are using MinGW
PATH_TO_FREEGLUT
is the folder where you extracted freeglut.zip ex C:/freeglut/
Linux
-
gcc
-
freeglut3-dev or freeglut
Windows
Tested on Windows 10 with MinGW-W64 and freeglut3.0.0 Tested on various gnu+linux distributions with gcc and freeglut3 and freeglut3-dev