Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Text Refactor #325

Open
Cullen-Enerdyne opened this issue Apr 6, 2022 · 3 comments
Open

Text Refactor #325

Cullen-Enerdyne opened this issue Apr 6, 2022 · 3 comments
Assignees
Labels
Enhancement Improvements. Feature Request Request to add a feature to the application. OpenGL Software related to the gaphics rendering backend.

Comments

@Cullen-Enerdyne
Copy link
Collaborator

Can we get better support for textboxes?

This might have to be additional entity that contains text.
In addition to displaying text, the text box should:

  • Be resizable
  • Support multi-line text, and adjust the line breaks to fit the textbox
  • Be movable (this is already done)
  • Be editable (we should be able to get a cursor that we can control to edit the text)
@Cullen-Enerdyne Cullen-Enerdyne added OpenGL Software related to the gaphics rendering backend. Feature Request Request to add a feature to the application. Enhancement Improvements. labels Apr 6, 2022
@AlexvZyl
Copy link
Owner

AlexvZyl commented Apr 6, 2022

Yes the text needs a lot of work... I also want to change how they are rendered, so at some stage I am going to overhaul everything.

Instead of having a bunch of quads with each their own texture we could generate textures with words/sentences, reducing the drawing to one quad, but requires the need to generate textures on the fly. This also means we do not have to change the VAO when updating text, since it will always only be a quad.

@AlexvZyl AlexvZyl changed the title Text suport Text Refactor Apr 6, 2022
@AlexvZyl
Copy link
Owner

AlexvZyl commented Apr 6, 2022

#309 #84

@AlexvZyl
Copy link
Owner

AlexvZyl commented Jun 22, 2022

Updating text has become significantly cheaper by adding Free Lists in #347.

I might even be cheaper (and simpler) to keep rendering characters separately.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement Improvements. Feature Request Request to add a feature to the application. OpenGL Software related to the gaphics rendering backend.
Projects
None yet
Development

No branches or pull requests

2 participants