Skip to content

msagca/learning-opengl

Repository files navigation

Learning OpenGL

This is where I experiment with OpenGL as I follow along the tutorials at LearnOpenGL.

How to Build

Requirements

Instructions

  • Set up vcpkg (follow steps 1..2 here)

  • Clone this repository

git clone https://github.com/msagca/learning-opengl
cd learning-opengl
  • Run the configure command
cmake .

If CMake uses Visual Studio as the generator (default on Windows) but you use a different code editor (e.g., Neovim), header files installed via vcpkg might not be found by the language server (e.g., clangd). To fix this, you have to specify Ninja or Unix Makefiles as the generator so that the required compile_commands.json file is created.

cmake -G "Ninja" .
  • Run the build command
cmake --build .