This repository contains my Computer Graphics Course Project (Spring 2022) at University of Tehran.
This project is build for windows and uses win32 api to work. I used freeglut library to make using OpenGL easier.
You can find out more about freeglut here.
Then you can download freeglut library from here. Because we are working on windows you should download MinGW package.
First you need CMake installed on you system. Then install above mentioned library on your MinGW.
You can learn more about MinGW here and download here.
After meeting the needs of requirements we are ready to build and run project.
In project root directory create new folder called build
. Open command prompt inside this folder and run command below:
cmake -G "MinGW Makefiles" ..
Then return to project root directory and open command prompt here. Then run command below:
cmake --build .\build\ --target Bicycle --config Debug
After command above our executable file is avaliable in build
directory named Bicycle.exe
.
All above steps are written in build.bat
. You simply can open command prompt on project root directory and enter:
build.bat
Or if using PowerShell
:
.\build.bat
By running script above executable file will appear in project root directory.
Enjoy :)