From 6a5dba260006995eaf7c4651f11141798ea3238c Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sat, 27 Sep 2025 22:53:52 +0100 Subject: [PATCH] Use struct for vec3_t instead of array --- gpu.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpu.h b/gpu.h index 8dbb314..8b0623e 100644 --- a/gpu.h +++ b/gpu.h @@ -6,9 +6,12 @@ #define SWAPCHAIN_IMG_BUFFER_SIZE 4 -typedef float vec3_t[3]; typedef float mat4_t[16]; +typedef struct { + float x, y, z; +} vec3_t; + typedef struct { vec3_t position; vec3_t colour;