Class AWTImageRenderer3d

All Implemented Interfaces:
com.jogamp.opengl.GLEventListener, EventListener
Direct Known Subclasses:
JavaFXOffscreenRenderer3d

public class AWTImageRenderer3d extends AWTRenderer3d
A renderer generating AWT BufferedImages and notifying a AWTImageRenderer3d.DisplayListener when it is updated. Especially usefull to perform offscreen rendering and displaying buffered image in a panel.
Author:
Martin Pernollet
  • Field Details

  • Constructor Details

    • AWTImageRenderer3d

      public AWTImageRenderer3d()
    • AWTImageRenderer3d

      public AWTImageRenderer3d(View view)
    • AWTImageRenderer3d

      public AWTImageRenderer3d(View view, boolean traceGL, boolean debugGL)
  • 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 Renderer3d
    • makeScreenshotAsBufferedImage

      protected BufferedImage makeScreenshotAsBufferedImage(com.jogamp.opengl.GL gl)
    • addDisplayListener

      public void addDisplayListener(AWTImageRenderer3d.DisplayListener listener)
    • fireDisplay

      protected void fireDisplay(Object image)