From 7b86e3251a28406862fe16d49f8533beb8ca3150 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 28 Jul 2024 00:10:00 +1000 Subject: start on ocaml bindings --- bindgen/ocaml/bindings/celeritas.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bindgen/ocaml/bindings/celeritas.h (limited to 'bindgen/ocaml/bindings/celeritas.h') 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 +// #include + +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 -- cgit v1.2.3-70-g09d2