1. dejayberlin
  2. JOGLFXPipeline

Source

JOGLFXPipeline /

Filename Size Date modified Message
src
454 B
working on JOGLPresentable
32 B
cleanup
384 B
initial commit javaFXGL
19.3 KB
added more texture stuff
1.2 KB
added more texture stuff
Experimental JOGL Pipeline for JavaFX 8:

The default JavaFX graphic pipeline is written in native Direct3D on windows or OpenGL on osx / linux.
It is possible to write custom javafx.scene.Node's that instances a special com.sun.javafx.sg.PGNode
and overload the PGNode.renderContent(Graphics graphics) method. There you can use the GraphicPipeline 
to draw things in an "immediate mode", or if you are using GL, issue GL commands directly since it is
called in rendering thread.
With the JOGLPipeline installed before application startup, this pipeline replaces all standard
rendering of JavaFX and allows special OpenGL rendering that works the same cross platform (windows, osx, linux).
Care must be taken to preserve render states.

The purpose is to enable cross platform development of GPU accelerated graphics.


Use cases:
-Games
-Scientific visualization
-Medical imaging
-VJ software
-Showroom applications
-Presentations



You need to remove jfxrt.jar from your ext folder (C:\Program Files\Java\jdk1.8.0\jre\lib\ext\jfxrt.jar) 
and add it seperatly to the project, else the ExtClassLoader can't load the JOGLPipeline class.