Create linear algebra module

This commit is contained in:
Camden Dixie O'Brien committed 2025-09-28 13:57:09 +01:00
1 parent 74f15dd132
commit f546f27a42
5 files changed
+165 -144

No files matched your search

+2 -12
View File
@@ -1,23 +1,13 @@
#ifndef GPU_H
#define GPU_H
#include "linear_alg.h"
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#define SWAPCHAIN_IMG_BUFFER_SIZE 4
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;