Textbox example.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user