kitgit

tirbofish/dropbear · diff

f2fb8a5 · Thribhu K

refactor: organise dropbear headers

Unverified

diff --git a/build.gradle.kts b/build.gradle.kts
index 2954aa1..5f5eac2 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -74,6 +74,7 @@ kotlin {
                     val dropbear by creating {
                         defFile(project.file("src/dropbear.def"))
                         includeDirs.headerFilterOnly(project.file("headers"))
+                        compilerOpts("-I${project.file("headers").absolutePath}")
                     }
                 }
             }
diff --git a/headers/components/dropbear_entitytransform.h b/headers/components/dropbear_entitytransform.h
new file mode 100644
index 0000000..6a56825
--- /dev/null
+++ b/headers/components/dropbear_entitytransform.h
@@ -0,0 +1,18 @@
+#ifndef DROPBEAR_ENTITYTRANSFORM_H
+#define DROPBEAR_ENTITYTRANSFORM_H
+
+#include "../dropbear_common.h"
+#include "../dropbear_math.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
+DROPBEAR_NATIVE dropbear_get_transform(const World* world_ptr, HANDLE entity_handle, NativeEntityTransform* out_transform);
+DROPBEAR_NATIVE dropbear_propagate_transform(const World* world_ptr, HANDLE entity_id, NativeTransform* out_transform);
+DROPBEAR_NATIVE dropbear_set_transform(const World* world_ptr, HANDLE entity_id, NativeEntityTransform transform);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif // __cplusplus
+#endif // DROPBEAR_ENTITYTRANSFORM_H
\ No newline at end of file
diff --git a/headers/components/dropbear_hierarchy.h b/headers/components/dropbear_hierarchy.h
new file mode 100644
index 0000000..af5dc32
--- /dev/null
+++ b/headers/components/dropbear_hierarchy.h
@@ -0,0 +1,17 @@
+#ifndef DROPBEAR_HIERARCHY_H
+#define DROPBEAR_HIERARCHY_H
+
+#include "../dropbear_common.h"
+
+#ifdef __cplusplus
+extern "C" {

Large diffs are not rendered by default. Showing the first 50 of 565 lines. Show full diff