Wanted to demonstrate how to use OpenGL with Gtk in Kotlin, the setup was not easy to get right, so I guess it could save time to others.
Thanks again for the awesome JavaGI binding, I think it deserves a better exposure.
Implementation notes:
- I chose not to share code between the GL & GLES renderers even though there's much that could be done, for the sake of clarity (which I think is the point of a sample): providing an abstraction for that seemed out of scope
- I included natives for all platforms to avoid excluding anyone, though in a real app, you may want to produce platform specific builds each with just the natives needed
Wanted to demonstrate how to use OpenGL with Gtk in Kotlin, the setup was not easy to get right, so I guess it could save time to others.
Thanks again for the awesome JavaGI binding, I think it deserves a better exposure.
### Implementation notes:
* I chose not to share code between the GL & GLES renderers even though there's much that could be done, for the sake of clarity (which I think is the point of a sample): providing an abstraction for that seemed out of scope
* I included natives for all platforms to avoid excluding anyone, though in a real app, you may want to produce platform specific builds each with just the natives needed