Skip to content

OpenGL implementation for JavaFX, based on JOGL

License

Notifications You must be signed in to change notification settings

lqyaos/openglfx

 
 

Repository files navigation

OpenGLFX

OpenGL implementation for JavaFX, based on JOGL

Features:

  • HiDPI support
  • One-line Node creation
  • Smooth resizing without slowing down the program
  • Just a simple Pane node

Examples

Requirements

Usage

  • Add dependency

    repositories {
        // ...
        maven { url 'https://jitpack.io' }
    }
    
    dependencies {
        implementation 'com.github.husker-dev:openglfx:1.1'
    }
  • Create node

    Node glNode = OpenGLCanvas.create();
    Node glNode = OpenGLCanvas.create(/* GLCapabilities */, /* FPS */);
    Node glNode = OpenGLCanvas.create(/* GLCapabilities */, /* FPS */, /* requireDirectDraw */);

Rendering types

Universal Direct GL
Performance ✔️
Smooth resizing ✔️
Separate GL context ✔️
OpenGL pipeline ✔️ ✔️
DirectX pipeline ✔️
Software pipeline ✔️
Calls init once ✔️

To disable Direct GL mode, set requireDirectDraw variable to false when creating the node.

Wiki

Read wiki articles for more information

About

OpenGL implementation for JavaFX, based on JOGL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 100.0%