diff options
Diffstat (limited to 'include/celeritas.h')
-rw-r--r-- | include/celeritas.h | 7 |
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 |