improve text input

This commit is contained in:
2019-09-17 13:57:37 +02:00
parent 882a516455
commit 72fa400651
14 changed files with 598 additions and 83 deletions

View File

@@ -58,7 +58,8 @@ public:
GLuint font_buffers[2] = {0, 0};
kFont font_id;
glm::vec2 bb = { 0, 0 };
glm::vec4 cur_box;
bool create();
void update(kFont id, const char* text);
void update(kFont id, const std::string& text);
void draw();
};