Class JavaFXOffscreenRenderer3d

All Implemented Interfaces:
com.jogamp.opengl.GLEventListener, EventListener

public class JavaFXOffscreenRenderer3d extends AWTImageRenderer3d
  • Field Details

    • javafxImage

      protected javafx.scene.image.Image javafxImage
  • Constructor Details

    • JavaFXOffscreenRenderer3d

      public JavaFXOffscreenRenderer3d()
    • JavaFXOffscreenRenderer3d

      public JavaFXOffscreenRenderer3d(View view, boolean traceGL, boolean debugGL)
    • JavaFXOffscreenRenderer3d

      public JavaFXOffscreenRenderer3d(View view)
  • Method Details

    • display

      public void display(com.jogamp.opengl.GLAutoDrawable canvas)
      Description copied from class: Renderer3d
      Called when the GLAutoDrawable requires a rendering. All call to rendering methods should appear here.
      Specified by:
      display in interface com.jogamp.opengl.GLEventListener
      Overrides:
      display in class AWTImageRenderer3d
    • init

      public void init(com.jogamp.opengl.GLAutoDrawable canvas)
      Description copied from class: Renderer3d
      Called when the GLAutoDrawable is rendered for the first time. When one calls Scene.init() function, this function is called and makes the OpenGL buffers initialization. Note: in this implementation, GL Exceptions are not triggered. To do so, make te following call at the beginning of the init() body: canvas.setGL( new DebugGL(canvas.getGL()) );
      Specified by:
      init in interface com.jogamp.opengl.GLEventListener
      Overrides:
      init in class Renderer3d
    • reshape

      public void reshape(com.jogamp.opengl.GLAutoDrawable canvas, int x, int y, int width, int height)
      Description copied from class: Renderer3d
      Called when the GLAutoDrawable is resized.
      Specified by:
      reshape in interface com.jogamp.opengl.GLEventListener
      Overrides:
      reshape in class Renderer3d
    • makeScreenshotAsJavaFXImage

      protected javafx.scene.image.Image makeScreenshotAsJavaFXImage(com.jogamp.opengl.GL gl)
    • getLastJavaFXScreenshotImage

      public javafx.scene.image.Image getLastJavaFXScreenshotImage()