All Implemented Interfaces:
com.jogamp.opengl.GLEventListener, SceneChangeListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class OpenGLPanel extends Viewport implements com.jogamp.opengl.GLEventListener
OpenGLPanel manages a GLJPanel and an FPSAnimator. It is a concrete implementation of Viewport.
See Also:
  • Constructor Details

    • OpenGLPanel

      public OpenGLPanel()
  • Method Details

    • savePrefs

      public void savePrefs()
      Overrides:
      savePrefs in class Viewport
    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class Viewport
    • removeNotify

      public void removeNotify()
      Overrides:
      removeNotify in class Viewport
    • addGLEventListener

      public void addGLEventListener(com.jogamp.opengl.GLEventListener listener)
    • removeGLEventListener

      public void removeGLEventListener(com.jogamp.opengl.GLEventListener listener)
    • stopAnimationSystem

      public void stopAnimationSystem()
    • init

      public void init(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
      Specified by:
      init in interface com.jogamp.opengl.GLEventListener
    • dispose

      public void dispose(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
      Specified by:
      dispose in interface com.jogamp.opengl.GLEventListener
    • reshape

      public void reshape(com.jogamp.opengl.GLAutoDrawable glAutoDrawable, int x, int y, int width, int height)
      Specified by:
      reshape in interface com.jogamp.opengl.GLEventListener
    • display

      public void display(com.jogamp.opengl.GLAutoDrawable glAutoDrawable)
      Specified by:
      display in interface com.jogamp.opengl.GLEventListener
    • renderViewportTools

      public void renderViewportTools()
    • isHardwareAccelerated

      public boolean isHardwareAccelerated()
      Overrides:
      isHardwareAccelerated in class Viewport
    • setHardwareAccelerated

      public void setHardwareAccelerated(boolean hardwareAccelerated)
      Overrides:
      setHardwareAccelerated in class Viewport
    • isDoubleBuffered

      public boolean isDoubleBuffered()
      Overrides:
      isDoubleBuffered in class JComponent
    • setDoubleBuffered

      public void setDoubleBuffered(boolean doubleBuffered)
      Overrides:
      setDoubleBuffered in class JComponent
    • getFsaaSamples

      public int getFsaaSamples()
      Overrides:
      getFsaaSamples in class Viewport
    • setFsaaSamples

      public void setFsaaSamples(int fsaaSamples)
    • isVerticalSync

      public boolean isVerticalSync()
      Overrides:
      isVerticalSync in class Viewport
    • setVerticalSync

      public void setVerticalSync(boolean verticalSync)
      Overrides:
      setVerticalSync in class Viewport
    • getFPS

      public int getFPS()