summaryrefslogtreecommitdiff
path: root/ui.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.hpp')
-rw-r--r--ui.hpp8
1 files changed, 6 insertions, 2 deletions
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);