summaryrefslogtreecommitdiff
path: root/src/maths/maths.h
diff options
context:
space:
mode:
authoromnisci3nce <17525998+omnisci3nce@users.noreply.github.com>2024-03-24 15:50:47 +1100
committeromnisci3nce <17525998+omnisci3nce@users.noreply.github.com>2024-03-24 15:50:47 +1100
commit8b9094ff517126ed102b79425e5fe4c67c589e47 (patch)
tree9f3cfe1c8910f216d04d314626ab726f004b11ba /src/maths/maths.h
parent014c833c5b2a5fda31164ba71ab51fba868c1d86 (diff)
swapchain creation and main renderpass
Diffstat (limited to 'src/maths/maths.h')
-rw-r--r--src/maths/maths.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/maths/maths.h b/src/maths/maths.h
index d832739..6816415 100644
--- a/src/maths/maths.h
+++ b/src/maths/maths.h
@@ -52,6 +52,8 @@ static inline vec3 vec3_cross(vec3 a, vec3 b) {
static inline vec2 vec2_create(f32 x, f32 y) { return (vec2){ x, y }; }
// TODO: Dimension 4
+static inline vec4 vec4_create(f32 x, f32 y, f32 z, f32 w) { return (vec4){ x, y, z, w }; }
+#define vec4(x, y, z, w) (vec4_create(x, y, z, w))
#define VEC4_ZERO ((vec4){ .x = 0.0, .y = 0.0, .z = 0.0, .w = 0.0 })
// --- Quaternion Implementations