Dominaezzz / kotlin-imgui

Kotlin bindings for Dear ImGui
MIT License
83 stars 4 forks source link

Commonize Sample #16

Closed nlbuescher closed 4 years ago

nlbuescher commented 4 years ago

Commonizes the Simple sample implementation. Currently works and compiles on Native and JVM.

Questions raised while implementing this PR:

  1. common functions are not provided by kgl-opengl
  2. the samples use lwjgl directly rather than having kgl provide the dependencies (this goes for the imgui project in general)
  3. kgl-opengl doesn't seem to provide OpenGL functions on JVM? Removing the lwjgl dependency shows the com.kgl.opengl package, but functions like glClear and glClearColor can't be used from that package.
Dominaezzz commented 4 years ago

kgl-opengl doesn't have JVM counterpart, mostly because I haven't gotten around to it. I guess from lack of demand, since I don't use it myself. The aim was to solve the common issue of not being able to easily use OpenGL from Kotlin/Native and after that I called it a day.