From: Brendan Hansen Date: Mon, 13 Dec 2021 01:05:57 +0000 (-0600) Subject: working on linux X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=c9484ec009e17402252501fa80b15966cbe8b43e;p=voxel-shooter.git working on linux --- diff --git a/.vscode/tasks.json b/.vscode/tasks.json index fb21b08..5300e43 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -21,6 +21,9 @@ "windows": { "command": "run.bat", }, + "linux": { + "command": "run.sh", + }, "group": { "kind": "build", "isDefault": true diff --git a/run_tree/lib/onyx_glfw3.so b/run_tree/lib/onyx_glfw3.so new file mode 100755 index 0000000..f41064a Binary files /dev/null and b/run_tree/lib/onyx_glfw3.so differ diff --git a/run_tree/lib/onyx_opengles.so b/run_tree/lib/onyx_opengles.so new file mode 100755 index 0000000..8500f5b Binary files /dev/null and b/run_tree/lib/onyx_opengles.so differ diff --git a/run_tree/run.sh b/run_tree/run.sh new file mode 100755 index 0000000..c58eb2e --- /dev/null +++ b/run_tree/run.sh @@ -0,0 +1,2 @@ + +onyx run build -I ../src \ No newline at end of file diff --git a/src/main.onyx b/src/main.onyx index 4501425..158cfd5 100644 --- a/src/main.onyx +++ b/src/main.onyx @@ -9,6 +9,8 @@ main :: (args) => { os.exit(1); } + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); window := glfwCreateWindow(800, 600, #cstr "Voxel Shooter"); glfwMakeContextCurrent(window); glInit(glfwGetLoadProcAddress());