OpenGL setup: GLFW and GLAD in Visual Studio Code on macOS

Описание к видео OpenGL setup: GLFW and GLAD in Visual Studio Code on macOS

Contents of the video:
00:00 Intro
01:00 GLFW download and project setup
03:03 VS Code default build task configuration
06:46 Glad download


Homebrew : https://brew.sh
GLAD : https://glad.dav1d.de
Sample code 1 : https://www.glfw.org/documentation.html
Sample code 2 : https://learnopengl.com/code_viewer_g...

——————————————————————————————————————————————————
————————————————————tasks.json————————————————————
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: clang++ build active file",
"command": "/usr/bin/clang++",
"args": [
"-std=c++17",
"-fdiagnostics-color=always",
"-Wall",
"-g",
"-I${workspaceFolder}/dependencies/include",
"-L${workspaceFolder}/dependencies/library",
"${workspaceFolder}/dependencies/library/libglfw.3.3.dylib",
"${workspaceFolder}/*.cpp",
"${workspaceFolder}/glad.c",
"-o",
"${workspaceFolder}/app",
"-framework",
"OpenGL",
"-framework",
"Cocoa",
"-framework",
"IOKit",
"-framework",
"CoreVideo",
"-framework",
"CoreFoundation",
"-Wno-deprecated"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "compiler: /usr/bin/clang++"
}
]
}

Комментарии

Информация по комментариям в разработке