openGL-walkthrough

This repository contains all openGl codes, they are done in C and C++.

To execute code in linux install freeglut3

sudo apt install freeglute-dev

To execute the code use

gcc "program_name.cpp" -o a.out -lGLU -lGL -lglut 
./a.out
  1. making window - use openGL library to make a window.
  2. openGL_primitives - shows the use of basic available openGL-primitives functions.
  3. mouse & keyboard - use of mouse and keyboard in the glut window and log there activity in the console
  4. rotate function Demo - use of rotate function in the given glut project.
  5. load png images - loading the png images in the glut window.
  6. object picking mouse - use mouse to select/pick a object.