summaryrefslogtreecommitdiff
path: root/include/celeritas.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-27 11:51:02 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-27 11:51:02 +1100
commit7577b6d51c5180ec23f93cec79a5c77e54130558 (patch)
tree1b372bf5ccc89eba828ff15f87558ff695b6d75d /include/celeritas.h
parente597fbb916848df1f6fbd4da04c1ab6f89a25b45 (diff)
fix compilation on mac
Diffstat (limited to 'include/celeritas.h')
-rw-r--r--include/celeritas.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/celeritas.h b/include/celeritas.h
index ef85a66..3dc3761 100644
--- a/include/celeritas.h
+++ b/include/celeritas.h
@@ -70,7 +70,7 @@ _Static_assert(sizeof(ptrdiff_t) == 8, "type ptrdiff_t should be 8 bytes");
#define GB(x) ((size_t)x * 1000 * 1000 * 1000)
// TEMP
-#define CEL_PLATFORM_LINUX
+// #define CEL_PLATFORM_LINUX
// Platform informs renderer backend (unless user overrides)
#if defined(CEL_PLATFORM_LINUX) || defined(CEL_PLATFORM_WINDOWS)
@@ -291,6 +291,10 @@ _Static_assert(alignof(vec3) == 4, "vec3 is 4 byte aligned");
_Static_assert(sizeof(vec3) == 12, "vec3 is 12 bytes so has no padding");
_Static_assert(alignof(vec4) == 4, "vec4 is 4 byte aligned");
+// vector 2 functions
+inlined vec2 vec2_create(f32 x, f32 y);
+
+// vector 3 functions
inlined vec3 vec3_create(f32 x, f32 y, f32 z);
inlined vec3 vec3_add(vec3 u, vec3 v);
inlined vec3 vec3_sub(vec3 u, vec3 v);
@@ -303,6 +307,7 @@ inlined vec3 vec3_normalise(vec3 a);
inlined f32 vec3_dot(vec3 a, vec3 b);
inlined vec3 vec3_cross(vec3 a, vec3 b);
+// vector 4 functions
vec4 vec4_create(f32 x, f32 y, f32 z, f32 w);
// quaternion functions