All Implemented Interfaces:
com.jogamp.opengl.GLEventListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
Viewport

public class OpenGLPanel extends App implements com.jogamp.opengl.GLEventListener, MouseListener, MouseMotionListener, MouseWheelListener
OpenGLPanel manages a GLJPanel and an FPSAnimator.
See Also:
  • Constructor Details

    • OpenGLPanel

      public OpenGLPanel()
  • Method Details

    • savePrefs

      public void savePrefs()
    • addNotify

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

      public void removeNotify()
      Overrides:
      removeNotify in class JComponent
    • 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
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Specified by:
      mouseClicked in interface MouseListener
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Specified by:
      mouseDragged in interface MouseMotionListener
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Specified by:
      mouseMoved in interface MouseMotionListener
    • mouseWheelMoved

      public void mouseWheelMoved(MouseWheelEvent e)
      Specified by:
      mouseWheelMoved in interface MouseWheelListener
    • isHardwareAccelerated

      public boolean isHardwareAccelerated()
    • setHardwareAccelerated

      public void setHardwareAccelerated(boolean hardwareAccelerated)
    • isDoubleBuffered

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

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

      public int getFsaaSamples()
    • setFsaaSamples

      public void setFsaaSamples(int fsaaSamples)
    • isVerticalSync

      public boolean isVerticalSync()
    • setVerticalSync

      public void setVerticalSync(boolean verticalSync)