OpenGL C Example is a simple program demonstrating basic modern, core OpenGL 3.3 with CMake 3.5 using the C89 programming language.
This program contains commonly used libraries GLFW, GLAD, and STB.
Requires git and CMake 3.5 or later to build.
- CMake 3.5 or greater
- OpenGL 3.3 or higher supported graphics card and drivers
- C89 compiler
Clone the repository:
git clone https://github.com/jagger-harris/opengl-c-example.git
cd opengl-c-example
git submodule init
git submodule update
Using provided build script:
./build.sh build run
Without build script:
mkdir build
cd build
cmake ..
make
./executable
See the contributing guidelines here.