Textbox example.

This commit is contained in:
2025-11-08 17:26:25 -06:00
parent 0a83175b66
commit db589b7d91
13 changed files with 184 additions and 18 deletions

View File

@@ -11,6 +11,7 @@
#include "util/memory.h"
#include "display/tileset/tileset_minogram.h"
#include "display/screen.h"
#include "ui/uitextbox.h"
ui_t UI;
@@ -31,6 +32,8 @@ void uiUpdate(void) {
UI.camera.orthographic.right = SCREEN.width;
UI.camera.orthographic.top = 0;
UI.camera.orthographic.bottom = SCREEN.height;
uiTextboxUpdate();
}
void uiRender(void) {
@@ -39,6 +42,7 @@ void uiRender(void) {
// Render UI elements here
if(UI.fontTexture.width > 0) {
uiFPSRender(UI.fontTileset, &UI.fontTexture);
uiTextboxRender();
}
cameraPopMatrix();