SU
OpenGL-3D-Bloxorz
-
Demo
-
Dependencies
-
Recommended
-
GLFW
- Install glfw in Linux (Debian based)
sudo apt install libglfw3 libglfw3-dev
- Install glfw in Linux (Debian based)
-
GLAD
- Go to glad link
Language:C/C++Specification:OpenGLgl:Version 4.5gles1:Version 1.0gles2:Version 3.2Profile:Core- Select
Add Allunder extensions and click Generate and Download the zip file generated. - Copy contents of
include/folder in the downloaded directory to/usr/local/include/ src/glad.cshould be always compiled along with your OpenGL code
-
GLM
- Download the zip file from glm link
- Unzip it and copy the folder
glm/glm/to/usr/local/include
-
GLUT
- Install glut in
Linux(Debian based)sudo apt install freeglut3
- Install glut in
-
GLEW
- Install glew in
Linux(Debian based)sudo apt install libglew-dev
- Install glew in
-
-
It is recommended to use GLFW+GLAD+GLM on all OSes.
-
Ubuntu users can also install these libraries using apt-get.
-
-
Instructions
-
Compile
- generate executable using makefile
make
- generate executable using makefile
-
Run
- execute
Sample2D
- execute
-
Controls
LEFT ARROWblock fallsLEFTRIGHT ARROWblock fallsRIGHTUP ARROWblock fallsUPDOWN ARROWblock fallsDOWNqgameQUIT
-
clean
- remove the executable for a fresh compilation
make clean
- remove the executable for a fresh compilation
-
On this page
Languages
C++98.3%GLSL1.5%Makefile0.2%
Created February 10, 2017
Updated December 29, 2025
