git clone https://github.com/lighterbird/OpenGL_Tutorial.git
sudo apt-get update
sudo apt-get install pkg-config
sudo apt-get install libx11-dev
sudo apt-get install -y libxcursor-dev
sudo apt install build-essential cmake libx11-dev libxrandr-dev libxinerama-dev libxi-dev libglfw3-dev
sudo apt install libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modulesThis project has a demo folder and an exercise folder.
Run the .bat(windows) or .sh (linux and Mac) files in the main folder to run demo or exercise program.
Alternatively navigate to the respective folder to run, and then use the following commands:
mkdir build
cd build
cmake -G "MinGW Makefiles" .. (windows) OR cmake .. (Mac and linux)
cmake --build .Then run the OpenGLTutorialExe executable inside the build folder.
The following window should appear if everything is working correctly.

The exercise folder provides a starting point for the exercise.
- Add a uniform called
cameraMatrixand set it to scale the world co-ordinates from [(-1, -1), (1,1)] to [(-width/2, -height/2), (+width/2, +height/2)] - Take input
nfrom the user and create ansided polygon (define its vertices and indices) - Make the polygon rotate and translate from left to right (reversing direction on going out of bounds)
