This is a template for rendering a triangle with OpenGL and GLFW. To load the OpenGL library functions, we use GLAD.
Because the project references GLFW as a git submodule, you need the --resursive
switch for cloning:
git clone --recursive https://github.com/JayTee42/triangle
From a command prompt in the triangle
directory:
mkdir build
cd build
cmake ..
- Either run
make all
or for Visual Studio opentriangle.sln
The CMake template is based on github.com/juliettef/GLFW-CMake-starter. Check the license for details.
More resources on GLFW:
GLFW homepage: glfw.org
GLFW on GitHub: github.com/glfw/glfw