Maven module :un.engine : engine-opengl :
Class : un.engine.opengl.widget.GLFrame
Extends/Implements : un.api.event.AbstractEventSource com.jogamp.newt.event.WindowListener com.jogamp.newt.event.KeyListener com.jogamp.newt.event.MouseListener com.jogamp.opengl.GLEventListener
Subclasses : -

OpenGL Window.
Based on JOGL 2 Newt framework.
author  Johann Sorel


Variables : glWindow
Functions : GLFrame, GLFrame, GLFrame, getContext, getTitle, setTitle, setSize, getSize, getFps, setFps, setVisible, isVisible, getState, setState, setMaximizable, isMaximizable, setMinimizable, isMinimizable, setClosable, isClosable, setPinable, isPinable, setOnScreenLocation, getOnScreenLocation, setOpaque, isOpaque, windowRepaint, windowResized, windowMoved, windowGainedFocus, windowLostFocus, windowDestroyNotify, windowDestroyed, keyPressed, keyReleased, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseMoved, mouseDragged, mouseWheelMoved, processEvent, init, dispose, display, reshape, getEventClasses


public GLWindow glWindow


void GLFrame ()

void GLFrame (boolean opaque)

void GLFrame (boolean opaque, GLProfile glProfile)

public GLProcessContext getContext ()

public CharArray getTitle ()

public void setTitle (CharArray title)

public void setSize (int width, int height)

public Extent getSize ()

public int getFps ()

public void setFps (int fps)

public void setVisible (boolean visible)

public boolean isVisible ()

public int getState ()

public void setState (int state)

public void setMaximizable (boolean maximizable)

public boolean isMaximizable ()

public void setMinimizable (boolean minimizable)

public boolean isMinimizable ()

public void setClosable (boolean closable)

public boolean isClosable ()

public void setPinable (boolean pinable)

public boolean isPinable ()

public void setOnScreenLocation (Tuple location)

public Vector getOnScreenLocation ()


Needs a restart.
futur evolution in JOGL 2 ?
param  opaque
public void setOpaque (boolean opaque)

public boolean isOpaque ()



public void windowRepaint (WindowUpdateEvent e)

public void windowResized (WindowEvent e)

public void windowMoved (WindowEvent e)

public void windowGainedFocus (WindowEvent e)

public void windowLostFocus (WindowEvent e)

public void windowDestroyNotify (WindowEvent e)

public void windowDestroyed (WindowEvent e)



public void keyPressed (KeyEvent e)

public void keyReleased (KeyEvent e)



public void mouseClicked (MouseEvent e)

public void mouseEntered (MouseEvent e)

public void mouseExited (MouseEvent e)

public void mousePressed (MouseEvent e)

public void mouseReleased (MouseEvent e)

public void mouseMoved (MouseEvent e)

public void mouseDragged (MouseEvent e)

public void mouseWheelMoved (MouseEvent e)


A new event from JOGAMP arrived, handle it.
protected void processEvent (un.engine.ui.ievent.MouseEvent me, un.engine.ui.ievent.KeyEvent ke)



public void init (GLAutoDrawable e)

public void dispose (GLAutoDrawable e)

public void display (GLAutoDrawable e)

public void reshape (GLAutoDrawable e, int i, int i1, int i2, int i3)



public Class[] getEventClasses ()