SHARED GL CONTEXTS [message #1826219] |
Tue, 21 April 2020 10:34  |
Eclipse User |
|
|
|
Hi Tom,
I am developing a JavaFX application with multiple DriftFXSurface nodes; each DriftFXSurface displays the same data set from a different view.
I would like to use a GLContext for creating and sharing OpenGL objects (VBOs, Textures etc.) among all my DriftFXSurface nodes.
Is it possible to create a DriftFXSurface with its GLContext shared with a "root" GLContext?
If yes, how can I do it?
Thanks for the help!
|
|
|
Re: SHARED GL CONTEXTS [message #1826315 is a reply to message #1826219] |
Thu, 23 April 2020 11:35  |
Eclipse User |
|
|
|
Hi Marco,
The current implementation of driftfx creates an internal root context and for all surfaces a shared context. So context sharing should work out of the box for you.
However this root context can not be set by you. You have to use one of these drift contexts to initialize your resources, or create another one by using the GLContext#CreateSharedContext api.
This will change in the next version. I'm thinking of removing the context management from drift so you can create your own contexts.
|
|
|
Powered by
FUDForum. Page generated in 0.02781 seconds