Berzerkula / LearnOpenGL

Learn Open GL with learnopengl.com as a guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learning OpenGL with GLFW framework

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

Client API

  • Edit init.cpp with appropriate GLFW_CONTEXT_VERSION_MAJOR and GLFW_CONTEXT_VERSION_MINOR values.

  • Edit vertexShaderSource and fragmentShaderSource #version xxx core

Build

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.

For a new project

Put GLAD glad.c into your project's main directory with the Makefile.

About

Learn Open GL with learnopengl.com as a guide


Languages

Language:C 98.0%Language:C++ 2.0%Language:Makefile 0.0%Language:GLSL 0.0%