husker-dev / openglfx

OpenGL implementation for JavaFX
Apache License 2.0
80 stars 10 forks source link

Render using shared GL contexts #17

Closed husker-dev closed 2 years ago

husker-dev commented 2 years ago

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

husker-dev commented 2 years ago

Added