Classic Game: Crossing the Barriers by Airplane

1 min read23 February 2014
openglc++game

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. A long time ago, I programmed a simple game with C++ and OpenGL and published it on a Github repo.


classic game

Step 1

You should have OpenGL utility toolkit on your computer to compile and run the source. First download the source that contains a folder named as glut-3.7.6-bin. Then go to the Microsoft Visual Studio installation folder and copy the files as below:

Copy  glut.h      ->    \vc\include\
Copy  glut32.dll  ->    \vc\lib\

Also you should copy .lib file to both Windows system folders:

Copy  glut32.lib  ->   \Windows\System
                       \Windows\System32

Step 2

The Bricks.raw file is a bricks pattern that I exported from the photoshop. If you want to change the pattern, first open your desired image with photoshop and save it again as a .raw file. Finally, you must copy this file near your .exe within debug directory before running the project in Visual Studio.

Copyright © 2006 - 2024 Vahid Hallaji
The content and codes are open source and published under the CC BY-SA and MIT licences respectively unless otherwise noted.
If you find anything you can improve, please feel free to submit an issue or a pull request.
Built with Nextjs and deployed by Vercel.