Skip to content

Very basic shape drawing tool to generate legacy openGL (C/CPP + freeglut / glut ) static sketches

Notifications You must be signed in to change notification settings

shoccho/gl_code_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legacy OpenGL code generator

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

Usage

The generated code can be compiled using

Linux

gcc -lGL -lGLU -lglut

Windows

  • 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/

Dependencies

Linux

  • gcc

  • freeglut3-dev or freeglut

Windows

Testing

Tested on Windows 10 with MinGW-W64 and freeglut3.0.0 Tested on various gnu+linux distributions with gcc and freeglut3 and freeglut3-dev

About

Very basic shape drawing tool to generate legacy openGL (C/CPP + freeglut / glut ) static sketches

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published