summaryrefslogtreecommitdiff
path: root/bindgen/ocaml/bindings/celeritas.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-28 00:10:00 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-28 00:10:00 +1000
commit7b86e3251a28406862fe16d49f8533beb8ca3150 (patch)
treea90166418ada7ad88500843ce8881a453c1d4721 /bindgen/ocaml/bindings/celeritas.h
parent6b004c5ac6a25f1020774276803b62e8619ea61e (diff)
start on ocaml bindings
Diffstat (limited to 'bindgen/ocaml/bindings/celeritas.h')
-rw-r--r--bindgen/ocaml/bindings/celeritas.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/bindgen/ocaml/bindings/celeritas.h b/bindgen/ocaml/bindings/celeritas.h
new file mode 100644
index 0000000..fce4d62
--- /dev/null
+++ b/bindgen/ocaml/bindings/celeritas.h
@@ -0,0 +1,21 @@
+/* The Goal of this file is to test ocaml-bindgen on it to start moving development over into OCaml */
+
+// #include <stdbool.h>
+// #include <stdint.h>
+
+typedef struct Core Core;
+typedef struct GLFWwindow GLFWwindow;
+
+Core* get_global_core();
+void core_Bringup(void* optional_window);
+
+void frame_Begin();
+void frame_Draw();
+void frame_End();
+
+
+struct Vec2 { float x; float y; };
+typedef struct Vec3 { float x; float y; float z; } Vec3;
+struct Vec4 { float x; float y; float z; float w; };
+
+Vec3 vec3_add(Vec3 a, Vec3 b); \ No newline at end of file