From 3e3ffdfe8de8b5bdda7f479d2ae198821b65a9dd Mon Sep 17 00:00:00 2001 From: Fabrice Date: Wed, 11 Feb 2026 17:03:15 +0100 Subject: adding cglm --- src/rendering.cc | 5 +++++ src/rendering.h | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/rendering.cc create mode 100644 src/rendering.h (limited to 'src') diff --git a/src/rendering.cc b/src/rendering.cc new file mode 100644 index 0000000..b26106f --- /dev/null +++ b/src/rendering.cc @@ -0,0 +1,5 @@ +#include "rendering.h" + +bool atlas_init(atlas_t* atlas, u32 width, u32 height) {} + +void atlas_deinit(atlas_t* atlas) {} diff --git a/src/rendering.h b/src/rendering.h new file mode 100644 index 0000000..b7d4a2a --- /dev/null +++ b/src/rendering.h @@ -0,0 +1,16 @@ +#pragma once + +#include + +#include "cglm/types.h" +#include "utils.h" + +struct uv_s { + vec2 uv0; + vec2 uv1; +}; + +typedef u32 atlas_t; + +bool atlas_init(atlas_t* atlas, u32 width, u32 height); +void atlas_deinit(atlas_t* atlas); -- cgit v1.2.3