Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarknessFX committed Jan 3, 2025
1 parent 77fac9c commit 4fa0834
Show file tree
Hide file tree
Showing 51 changed files with 14,788 additions and 0 deletions.
36 changes: 36 additions & 0 deletions projects/zig_raylib_examples/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "cppvsdbg",
"request": "launch",
"presentation": {
"hidden": false,
"group": "",
"order": 1
},
"program": "${workspaceFolder}/bin/Debug/${workspaceFolderBasename}.exe",
"args": [ ],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"preLaunchTask": "${defaultBuildTask}",
"console": "integratedTerminal",
"symbolSearchPath": "${workspaceFolder}/bin/Debug/",
},
{
"name": "Debug Attach",
"type": "cppvsdbg",
"request": "attach",
"presentation": {
"hidden": true,
"group": "",
"order": 2
},
"preLaunchTask": "Zig: Run main",
"internalConsoleOptions": "openOnFirstSessionStart",
"processId": "${command:pickProcess}"
}
]
}
131 changes: 131 additions & 0 deletions projects/zig_raylib_examples/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
{
"tasks": [{
"label": "Zig: Build",
"args": [ "build", "--summary", "all" ],
"detail": "zig build --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": true },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Safe.",
"args": [ "build", "-Doptimize=ReleaseSafe", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseSafe --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Fast.",
"args": [ "build", "-Doptimize=ReleaseFast", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseFast --summary all",
"command": "zig","type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Small.",
"args": [ "build", "-Doptimize=ReleaseSmall", "--summary", "all" ],
"detail": "zig build -Doptimize=ReleaseSmall --summary all",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Build Release Strip.",
"args": [ ],
"detail": "zig build-exe -O ReleaseSmall -fstrip -fsingle-threaded (+ lots of options) main.zig",
"command": "buildReleaseStrip.bat", "type": "shell", "options": { "cwd": "${workspaceRoot}\\tools" }, "group": { "kind": "build", "isDefault": false },
"presentation": { "group": "build", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Test",
"args": [ "test", "${file}" ],
"detail": "'zig test' in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "test", "isDefault": true },
"presentation": { "group": "test", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main",
"args": [ "run", "-lc",
"-lwinmm", "-lgdi32", "-lopengl32", "-lraylib",
"-Llib/raylib",
"-Ilib/raylib/include",
"main.zig"
],
"detail": "zig run main.zig",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": true },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (With Args)",
"args": [ "run", "-lc",
"-lwinmm", "-lgdi32", "-lopengl32", "-lraylib",
"-Llib/raylib",
"-Ilib/raylib/include",
"main.zig" , "--", "ArgsForYourProgram" ],
"detail": "zig run main.zig -- ArgsForYourProgram",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Fast)",
"args": [ "run", "-lc",
"-lwinmm", "-lgdi32", "-lopengl32", "-lraylib",
"-Llib/raylib",
"-Ilib/raylib/include",
"main.zig" , "-O", "ReleaseFast" ],
"detail": "zig run main.zig -O ReleaseFast",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Safe)",
"args": [ "run", "-lc",
"-lwinmm", "-lgdi32", "-lopengl32", "-lraylib",
"-Llib/raylib",
"-Ilib/raylib/include",
"main.zig" , "-O", "ReleaseSafe" ],
"detail": "zig run main.zig -O ReleaseSafe",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run main (Small)",
"args": [ "run", "-lc",
"-lwinmm", "-lgdi32", "-lopengl32", "-lraylib",
"-Llib/raylib",
"-Ilib/raylib/include",
"main.zig" , "-O", "ReleaseSmall" ],
"detail": "zig run main.zig -O ReleaseSmall",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Run current file",
"args": [ "run", "-lc",
"-lwinmm", "-lgdi32", "-lopengl32", "-lraylib",
"-Llib/raylib",
"-Ilib/raylib/include",
"${file}"
],
"detail": "'zig run' active file in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "zTime Zig: Run current file",
"args": [ "zig", "run", "-lc",
"-lwinmm", "-lgdi32", "-lopengl32", "-lraylib",
"-Llib/raylib",
"-Ilib/raylib/include",
"${file}" ],
"detail": "'zTime zig run' active file in the current workspace.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "zTime", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
},
{
"label": "Zig: Docs",
"args": [ "run", "-femit-docs", "main.zig" ],
"detail": "Generate docs from source comments.",
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
"presentation": { "group": "docs", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
}],
"version": "2.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
{
"folders": [{ "path": ".." }],
"settings": {
// Zig Workspace
"files.exclude": {
"*.lnk": true,
"**/.git": true,
".gitignore": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
// VSCODE FOLDERS --------
"**/.vscode": false,
"**/.code-workspace": true,
// ZIG FOLDERS --------
"**/zig-cache": true,
"**/.zig-cache": true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
// ZIG FOLDERS --------
"**/zig-out": true
},
"files.watcherExclude": {
// ZIG FOLDERS --------
"**/zig-cache": true
},

// DarknessFX settings
"telemetry.telemetryLevel": "off",
"workbench.colorTheme": "Default Dark+",
"workbench.startupEditor": "none",
"workbench.colorCustomizations": {
"statusBar.background" : "#1A1A1A",
"statusBar.noFolderBackground" : "#212121",
"statusBar.debuggingBackground": "#263238",
"editorBracketHighlight.foreground1": "#888888",
"editorBracketHighlight.foreground2": "#686888",
"editorBracketHighlight.foreground3": "#688868",
"editorBracketHighlight.foreground4": "#886868",
"editorBracketHighlight.foreground5": "#686868",
},
"editor.tokenColorCustomizations": {
"comments": "#546E7A",
"functions": "#DFAB4B",
"keywords": "#367CB6",
"numbers": "#CE9178",
"strings": "#CE9178",
"types": "#2EA990",
"variables": "#7CBCDE",

"[Default Dark+]": {
"textMateRules": [
{
"scope": [
"other",
"source",
"keyword.operator",
"keyword.operator.noexcept",
"punctuation",
"punctuation.dot",
"punctuation.comma",
"punctuation.definitions",
"punctuation.definition.comment",
"punctuation.definition.tag",
"punctuation.definition.tag.html",
"punctuation.definition.tag.begin.html",
"punctuation.definition.tag.end.html",
"punctuation.section.embedded",
"punctuation.separator",
"punctuation.separator.inheritance.php",
],
"settings": {
"foreground": "#758E68",
"fontStyle": "",
}
},
{
"scope": [
"comment",
],
"settings": {
"fontStyle": "italic",
}
},
{
"scope": [
"keyword",
"keyword.control",
"keyword.other",
"keyword.other.template",
"keyword.other.substitution",
"keyword.other.unit",
"storage",
"storage.type",
"storage.modifier",
"keywordLiteral",
"keyword.literal",
"keyword.constant.default",
],
"settings": {
"fontStyle": "italic",
"foreground": "#367CB6"
}
},
{
"scope": [
"support.class",
"support.type",
"entity.name.type",
"entity.name.namespace",
"entity.other.attribute",
"entity.name.scope-resolution",
"entity.name.class",
],
"settings": {
"foreground": "#2EA990"
}
},
],
},
},
"editor.tabSize": 2,
"editor.fontSize": 16,
"editor.unicodeHighlight.invisibleCharacters": false,
"editor.autoClosingBrackets": "never",
"editor.autoSurround": "never",
"editor.autoClosingQuotes": "never",
"editor.detectIndentation": false,
"editor.lightbulb.enabled": "off",
"workbench.editor.focusRecentEditorAfterClose": false,
"workbench.panel.defaultLocation": "left",
"workbench.panel.opensMaximized": "never",
"workbench.editor.tabSizing": "fixed",
"workbench.editor.tabSizingFixedMaxWidth": 140,
"workbench.sideBar.location": "right",
"debug.allowBreakpointsEverywhere": true,
"debug.onTaskErrors": "abort",
"explorer.confirmDragAndDrop": false,
"explorer.compactFolders": false,
"explorer.confirmDelete": false,
"terminal.integrated.profiles.windows": {
"Windows Terminal": {
"path": "wt",
"args": [
"-p", "cmd", "cmd"
],
"icon": "terminal-bash",
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Git Bash": {
"source": "Git Bash"
},
},
"terminal.integrated.tabs.location": "left",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"C_Cpp.vcFormat.space.groupSquareBrackets": false,
"C_Cpp.loggingLevel": "Debug",
"C_Cpp.codeAnalysis.clangTidy.codeAction.formatFixes": false,
"git.openRepositoryInParentFolders": "never",
"html.autoCreateQuotes": false,
"zig.buildFilePath": "${workspaceFolder}",
"zig.formattingProvider": "off",
"zig.checkForUpdate": false,
"zig.zls.enabled": true,
"zig.zls.highlightGlobalVarDeclarations": true,
"zig.zls.semanticTokens": "full",
"zig.zls.enableArgumentPlaceholders": false,
"zig.zls.inlayHintsExcludeSingleArgument": false,
"zig.zls.enableAutofix": false,
"zig.zls.checkForUpdate": false,
"zig.zls.enableInlayHints": false,
"zig.zls.preferAstCheckAsChildProcess": false,
"files.associations": {
"raylib.h": "c",
"rcamera.h": "c",
"raymath.h": "c"
},
},
"extensions": {
"recommendations": [
"pkief.material-icon-theme"
]
}
}
Binary file added projects/zig_raylib_examples/asset/raylib.ico
Binary file not shown.
Binary file added projects/zig_raylib_examples/asset/raylib.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4fa0834

Please sign in to comment.