SpaiR / imgui-java

JNI based binding for Dear ImGui
MIT License
587 stars 90 forks source link

BGFX backend #172

Open mathiasgredal opened 1 year ago

mathiasgredal commented 1 year ago

Description

I have made a basic imgui backend for bgfx. It is not as fancy as the OpenGL one, since it can't handle multi viewport and doesn't render other textures than the font texture.

image

Type of change

Added a new bgfx backend in addition to the OpenGL one. I have flipped the inheritance hierarchy such that instead of the application inheriting from window it is instead the window that inherits from the application. This makes it easy for the user to choose which backend they would like to use. Unfortunately it is a breaking change, I don't know if there is a better way to do this.