This is where I experiment with OpenGL
as I follow along the tutorials at LearnOpenGL.
git
,cmake
, vcpkg- Windows: Visual Studio
- Linux:
ninja
(ormake
),gcc
,g++
-
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
usesVisual Studio
as the generator (default onWindows
) but you use a different code editor (e.g., Neovim), header files installed viavcpkg
might not be found by the language server (e.g., clangd). To fix this, you have to specifyNinja
orUnix Makefiles
as the generator so that the requiredcompile_commands.json
file is created.cmake -G "Ninja" .
- Run the build command
cmake --build .