From e8c93463b2ae5114f0c88e768e5625abac9d5a50 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 27 Dec 2024 12:04:51 +1100 Subject: 3D maths --- ui.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ui.hpp') diff --git a/ui.hpp b/ui.hpp index a181afe..c002fc9 100644 --- a/ui.hpp +++ b/ui.hpp @@ -1,6 +1,7 @@ #ifndef ui_hpp #define ui_hpp +#include "maths.hpp" #include "video.hpp" struct Arena; @@ -33,13 +34,16 @@ struct UI { Texture_Id atlas; Shader_Id shader; Vertex_Format_Id vertex_format; - Buffer_Id mesh; + Buffer_Id mesh, config_buf; Sampler_Id sampler; + struct UI_CBuffer { + m4f projection; + }; struct { int vert_binding; int atlas_binding; + int config_binding; } shader_info; - float ndc[2]; static int text_width(const char* t); static int text_height(const char* t); -- cgit v1.2.3-54-g00ecf