Instead of the Direct rendering type, there is a way called Shared contexts.
This allows us to create another OpenGL context that can share resources (textures) with JavaFX. This will completely decouple rendering from JavaFX context.
As far as I know, there is a possibility in JOGL to implement this function. But LWJGL can't due to GLFW limitations.
Perhaps it is possible to write native libraries with context creation for each platform
Instead of the
Direct
rendering type, there is a way calledShared contexts
. This allows us to create another OpenGL context that can share resources (textures) with JavaFX. This will completely decouple rendering from JavaFX context.As far as I know, there is a possibility in JOGL to implement this function. But LWJGL can't due to GLFW limitations.
Perhaps it is possible to write native libraries with context creation for each platform