Use struct for mat4_t instead of array

This commit is contained in:
Camden Dixie O'Brien committed 2025-09-28 01:46:59 +01:00
1 parent 6a5dba2600
commit 59f584d1d4
2 files changed
+52 -53

No files matched your search

+8 -2
View File
@@ -6,12 +6,18 @@
#define SWAPCHAIN_IMG_BUFFER_SIZE 4
typedef float mat4_t[16];
typedef struct {
float x, y, z;
} vec3_t;
typedef struct {
float x, y, z, w;
} vec4_t;
typedef struct {
vec4_t x, y, z, w;
} mat4_t;
typedef struct {
vec3_t position;
vec3_t colour;