ultraq / redhorizon

Recreating the original 2D Command & Conquer games
Apache License 2.0
6 stars 4 forks source link

Logging to OpenGL display? #28

Closed ultraq closed 3 years ago

ultraq commented 4 years ago

I should look into font rendering in OpenGL and then use it to be able to emit the logging output to the display. It would be nicer to see the logs happening on the screen, rather than having to go back to the files that are emitted to disk after the fact.

Given that, would it be possible to write a logger that works with SLF4J/Logback for this purpose? Would rather have a single way to configure logging 🤔

ultraq commented 3 years ago

Something to look at for rendering text:

ultraq commented 3 years ago

Or any Java versions of ImGui? https://github.com/ocornut/imgui

ultraq commented 3 years ago

Got something working using https://github.com/SpaiR/imgui-java 🎉 However, it has some issues when I use the legacy renderer and so if I follow through on this then it might be time to fully remove the legacy renderer and make the modern one the default

ultraq commented 3 years ago

Woo!

Screen Shot 2021-02-20 at 4 16 39 PM