1
7
Fork
You've already forked examples
2

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)
Copy link

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)
Copy link

Thanks a lot, this is great!

Thanks a lot, this is great!
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
java-gi/examples!5
Reference in a new issue
java-gi/examples
No description provided.
Delete branch "feature/add_opengl_example"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?