husker-dev / openglfx

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

A third OpenGL binding for OpenGLFX? #31

Closed jzy3d closed 7 months ago

jzy3d commented 1 year ago

I use new tools from Oracle to produce native OpenGL bindings easily. The whole is much easier to build than historical frameworks like JOGL and LWJGL. As it covers Swing and more recently JavaFX, I thought you would be interested in integrating it in DriftFX.

There's a simple demo here. Using such a sample requires the below dependency

<dependency>
    <groupId>org.jzy3d</groupId>
    <artifactId>panama-gl-ui-javafx</artifactId>
    <version>${project.version}</version>
</dependency>

It is made available on Jzy3D's maven server here :

<repositories>
  <repository>
    <id>jzy3d-snapshots</id>
    <name>Jzy3d Snapshots</name>
    <url>https://maven.jzy3d.org/snapshots/</url>
  </repository>
  <repository>
    <id>jzy3d-releases</id>
    <name>Jzy3d Releases</name>
    <url>https://maven.jzy3d.org/releases/</url>
  </repository>
</repositories>

I'll be happy to answer question on this discussion.

husker-dev commented 1 year ago

Hi,

A third OpenGL binding would be a nice new feature to this project. Unfortunately now I have not ability to use something better than smartphone. So you can try to create it by yourself by implementing this class, like lwjgl and jogl modules does: https://github.com/husker-dev/openglfx/blob/master/jogl/src/main/kotlin/com/huskerdev/openglfx/jogl/JOGLFXExecutor.kt

https://github.com/husker-dev/openglfx/blob/master/lwjgl/src/main/kotlin/com/huskerdev/openglfx/lwjgl/LWJGLExecutor.kt

I’m planning to make big changes in library this summer, so you can just wait for it :)

husker-dev commented 7 months ago

At the moment it is impossible to implement this library because the developer is not in touch. If this changes, someone can reopen it