OpenGL is a cross language, cross platform, application programming interface for rendering 2D and 3D vector graphics.
This repository is a collection of programs written in C program language that utilises the openGL apis.
- rendering a basic window
- rendering a rectangle
- a multicolored spinning cube
- cube rotating wrt specified axis with matrix transformations
- triangle rotating wrt specified ref point and angle of rotation
- cube with camera and lighting apis
- rotating table with teapot on top
- triangle that rotates on the basis of keyboard input
- a ball that bounces off the walls of the window
- chessBoard
- simple circle
- circle creation and colour changes triggered by mouse buttons
- a polygon with all the diagonals drawn
- window changing color based on keyboard input
- polygon drawn from vertices read from a text file
- pyramid
- traingles drawn recursively within itself
- sierpinski Gasket
- sierpinski Triangle
git clone https://github.com/shellyannissa/openGL_samples.git
cd openGL_samples
./compile.sh <file_name>.c
./<file_name>
replace file_name with the appropriate file_name from the list of programs