Update launch config and use a custom painter

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-08-30 15:47:17 +02:00
parent 4b176986b1
commit 6c1b7fac76
5 changed files with 104 additions and 10 deletions
+24 -4
View File
@@ -1,18 +1,38 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "clang - Build and debug active file",
"name": "Flutter",
"request": "launch",
"type": "dart"
},
{
"name": "Flutter (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "Flutter (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "Raycaster (C)",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"program": "${workspaceFolder}/raycaster",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"preLaunchTask": "C/C++: clang build active file"
"preLaunchTask": "Build raycaster"
}
]
}
+24
View File
@@ -1,6 +1,30 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "Build raycaster",
"command": "/usr/bin/clang",
"args": [
"-g",
"${workspaceFolder}/raycaster.c",
"-o",
"${workspaceFolder}/raycaster",
"-framework",
"OpenGL",
"-framework",
"GLUT",
"-Wno-deprecated-declarations"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "Builds raycaster.c explicitly"
},
{
"type": "cppbuild",
"label": "C/C++: clang build active file",