This is a simple starter project to open a window using OpenGL in VSCode. Follow the tutorials on LearnOpenGL.
List of software and tools required to run the project:
- Visual Studio Code
- CMake
- OpenGL
- GLFW
- GLAD
Steps to install the necessary dependencies:
- Install Visual Studio Code from here.
- Install CMake from here.
- Download and integrate GLFW by cloning GLFW into your project:
cd LearnOpenGL/external git clone https://github.com/glfw/glfw.git
- Download GLAD from here by setting the language to C/C++, GL version to 3.3 or above, profile to core, and leaving extensions empty. Press generate, download the .zip, and copy the include and src directories into
LearnOpenGL/external
.
Steps to build and run the project (on Windows):
- Build the project:
cmake -S . -B build cmake --build build
- Run the executable:
.\build\Debug\LearnOpenGL.exe