Add OpenGL example #5

Merged
mrlem merged 1 commit from feature/add_opengl_example into main 2025-06-06 20:46:25 +02:00
mrlem commented 2025-06-05 08:37:48 +02:00 (Migrated from github.com)

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
jwharm commented 2025-06-06 20:46:01 +02:00 (Migrated from github.com)

Thanks a lot, this is great!

Thanks a lot, this is great!
Sign in to join this conversation.
No description provided.