Install GLFW framework
Install GLAD headers
to /usr/include
or put them elsewhere and adjust the Makefile
for GCC to find them.
The following link was used to generate the GLAD headers. GLAD Permalink
Install GLM
- Edit
init.cpp
with appropriate GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR values. - Edit vertexShaderSource and fragmentShaderSource
#version xxx core
Run make clean
to clean the build.
Run make
to build the source.
Run ./main
and should see a GL window (provided all the deps are installed)
Run make run
to clean, build and run.
Put GLAD glad.c
into your project's main directory with the Makefile.