working on linux
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 13 Dec 2021 01:05:57 +0000 (19:05 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 13 Dec 2021 01:05:57 +0000 (19:05 -0600)
.vscode/tasks.json
run_tree/lib/onyx_glfw3.so [new file with mode: 0755]
run_tree/lib/onyx_opengles.so [new file with mode: 0755]
run_tree/run.sh [new file with mode: 0755]
src/main.onyx

index fb21b08c42192a9ce219f70363546c46084f22b1..5300e435042f4770ff0730bfc73fd1696420b3ad 100644 (file)
@@ -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 (executable)
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 (executable)
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 (executable)
index 0000000..c58eb2e
--- /dev/null
@@ -0,0 +1,2 @@
+
+onyx run build -I ../src
\ No newline at end of file
index 4501425d8cd2c36d570cbbee4099c8a378aa5e29..158cfd5476fff89dabf5878820ffb9afc3dbe2d1 100644 (file)
@@ -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());