OpenGL is an API for rendering 2D and 3D vector graphics. The API is used to interact with a Graphics processing unit (GPU), to achieve hardware-accelerated rendering and It was developed by Silicon Graphics Inc.
Computer graphics is very attractive section of computer Science and I’m more interested too. Long ago, I programmed a simple game with C++ and OpenGL. Today, I published it on a github repo. You can access the source here:
https://github.com/hallaji/crossing-barriers
Step 1
You should have OpenGL Utility Toolkit on your computer to compile and run the source. First download the source that contain a folder named “glut-3.7.6-bin”.
Go to the Microsoft Visual Studio installation folder and copy the files as specified below:
1 2 3 4 |
Copy glut.h -> \vc\include\ Copy glut32.dll -> \vc\lib\ |
Also you should copy .lib file to both of windows system folders:
1 2 3 4 |
Copy glut32.lib -> \Windows\System \Windows\System32 |
Step 2
Bricks.raw is a bricks pattern that I exported from photoshop. If you want to change the pattern, First open your desired image with photoshop and save it again as a .raw file. Finally before running the project in Visual Studio, You must copy this file near your .exe within debug directory.