Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 2.33 KB

README.md

File metadata and controls

66 lines (52 loc) · 2.33 KB

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