Code example to test your VSCode C++ OpenGL setup with GLFW/GLAD.
Done on Windows and Ubuntu, with the g++ compiler.
Note: on linux, you have to compile glfw from source.
- watch this video.
- main.cpp is an example file for GLFW/GLAD use (for OpenGL 3.3). Just copy its content if you don't already have a cpp file.
- tasks.json is the VSCode file (put it in .vscode/) which tells how to build the exe. Change the paths given so they match your repo structure and compiler location.
There's another branch "imgui" with similar samples, but with ImGui as well.