GitHunt

OpenGL-3D-Bloxorz

  • Demo

    Bloxorz Demo

  • Dependencies

      • GLFW

        • Install glfw in Linux (Debian based) sudo apt install libglfw3 libglfw3-dev
      • GLAD

        • Go to glad link
        • Language : C/C++
        • Specification : OpenGL
        • gl : Version 4.5
        • gles1 : Version 1.0
        • gles2 : Version 3.2
        • Profile : Core
        • Select Add All under 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.c should 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
      • GLEW

        • Install glew in Linux (Debian based) sudo apt install libglew-dev
    • 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
    • Run

      • execute Sample2D
    • Controls

      • LEFT ARROW block falls LEFT
      • RIGHT ARROW block falls RIGHT
      • UP ARROW block falls UP
      • DOWN ARROW block falls DOWN
      • q game QUIT
    • clean

      • remove the executable for a fresh compilation make clean

Languages

C++98.3%GLSL1.5%Makefile0.2%
Created February 10, 2017
Updated December 29, 2025