diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-27 16:25:27 +1100 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-27 16:25:27 +1100 |
commit | c2812d1a79a1d790b2c549abdfe9344d4fb4f4d2 (patch) | |
tree | 58cb7b3e05b8327f6b2395ee0df38a0d4b674af0 /src | |
parent | 7577b6d51c5180ec23f93cec79a5c77e54130558 (diff) |
removing old ocaml glue code
Diffstat (limited to 'src')
-rw-r--r-- | src/maths.c | 10 | ||||
-rw-r--r-- | src/mem.c | 4 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/maths.c b/src/maths.c index 87e9afd..d710683 100644 --- a/src/maths.c +++ b/src/maths.c @@ -8,7 +8,7 @@ #include <celeritas.h> -vec2 vec2_create(f32 x, f32 y) { return (vec2){ x,y};} +vec2 vec2_create(f32 x, f32 y) { return (vec2){ x, y }; } vec3 vec3_create(f32 x, f32 y, f32 z) { return (vec3){ x, y, z }; } vec3 vec3_add(vec3 u, vec3 v) { return (vec3){ .x = u.x + v.x, .y = u.y + v.y, .z = u.z + v.z }; } @@ -31,10 +31,8 @@ vec3 vec3_cross(vec3 a, vec3 b) { return (vec3){ .x = a.y * b.z - a.z * b.y, .y = a.z * b.x - a.x * b.z, .z = a.x * b.y - a.y * b.x }; } - vec4 vec4_create(f32 x, f32 y, f32 z, f32 w) { return (vec4){ x, y, z, w }; } - f32 quat_dot(quat a, quat b) { return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; } quat quat_normalise(quat a) { @@ -55,7 +53,6 @@ quat quat_from_axis_angle(vec3 axis, f32 angle, bool normalize) { return q; } - mat4 mat4_ident() { return (mat4){ .x_axis = { 1, 0, 0, 0 }, @@ -120,7 +117,6 @@ mat4 mat4_mult(mat4 lhs, mat4 rhs) { // return out_matrix; } - /* */ @@ -168,6 +164,4 @@ mat4 mat4_look_at(vec3 position, vec3 target, vec3 up) { // return out_matrix; } -transform transform_from_mat4(mat4 matrix) { - TODO("stuff") -}
\ No newline at end of file +transform transform_from_mat4(mat4 matrix) { TODO("stuff") }
\ No newline at end of file @@ -1,8 +1,6 @@ #include <celeritas.h> -fixed_arena fixed_arena_new(void *backing_buffer, size_t size, size_t alignment) { - TODO("") -} +fixed_arena fixed_arena_new(void* backing_buffer, size_t size, size_t alignment){ TODO("") } void_pool void_pool_create(void* storage, const char* debug_label, u64 capacity, u64 entry_size) { size_t _memory_requirements = capacity * entry_size; |