OpenGL C++ template for VS Code IDE.
This template is based on https://github.com/vkphillia/opengl-cpp-template.
- VS Code (with VS Code C/C++ extension)
- MinGW (32 bit, with environment variables)
- Clone this repo
- Open this repo as a folder in Visual Studio Code
- In VSCode menu
- under
Terminal
option selectrun task
-Build
(or justctrl+shift+b
) - under
Run
option selectrun without debugging
(or justctrl+alt+b
)
- under
- GLFW (32 bit)
- GLAD
- GLM
include/ |
lib/ |
lib-static/ |
src/ |
|
---|---|---|---|---|
GLFW | GLFW/* |
glfw3.dll , libglfw3dll.a |
libglfw3.a |
|
GLAD | glad/* ,KHR/* , glad.c |
|||
GLM | glm/* |
- if you have any header files, add them to
include/
- libraries
- if you have any dynamic libraries, add them to
lib/
- if you have any static libraries, add them to
lib-static/
- add
-lyour_library
intoargs
list within.vscode/tasks.json
- if you have any dynamic libraries, add them to