Show how OpenGL works, a simple program of circle – drawing is added in C using OpenGL platform.
All credits to https://www.geeksforgeeks.org/getting-started-with-opengl/
For installing OpenGL on ubuntu, just execute the following command (like installing any other thing) in terminal:
sudo apt-get install freeglut3-dev
To compile the above program in ubuntu,
gcc filename.c -lGL -lGLU -lglut -lm
where filename.c is the name of the file with which this program is saved.