|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Interface adding a GLEventListenerState protocol to GLAutoDrawables or other self-contained compound types combining GLDrawable, GLContext and GLEventListener.
More...
Classes | |
| interface | Listener |
| Listener for preserve and restore notifications. More... | |
Public Member Functions | |
| Listener | setGLStateKeeperListener (Listener l) |
Sets a Listener, overriding the old one. More... | |
| boolean | isGLStatePreservationSupported () |
| boolean | preserveGLStateAtDestroy (boolean value) |
If set to true, the next GLAutoDrawable#destroy() operation will preserve the GLEventListenerState. More... | |
| GLEventListenerState | getPreservedGLState () |
Returns the preserved GLEventListenerState if preservation was performed, otherwise null. More... | |
| GLEventListenerState | clearPreservedGLState () |
Clears the preserved GLEventListenerState from this GLStateKeeper, without destroying it. More... | |
Interface adding a GLEventListenerState protocol to GLAutoDrawables or other self-contained compound types combining GLDrawable, GLContext and GLEventListener.
Implementing classes may support preservation of the GLContext state and it's associated GLEventListener.
Definition at line 38 of file GLStateKeeper.java.
| GLEventListenerState com.jogamp.opengl.GLStateKeeper.clearPreservedGLState | ( | ) |
Clears the preserved GLEventListenerState from this GLStateKeeper, without destroying it.
GLEventListenerState if preservation was performed, otherwise null. | GLEventListenerState com.jogamp.opengl.GLStateKeeper.getPreservedGLState | ( | ) |
Returns the preserved GLEventListenerState if preservation was performed, otherwise null.
| boolean com.jogamp.opengl.GLStateKeeper.isGLStatePreservationSupported | ( | ) |
true if GL state preservation is supported in implementation and on current platform, false otherwise. | boolean com.jogamp.opengl.GLStateKeeper.preserveGLStateAtDestroy | ( | boolean | value | ) |
If set to true, the next GLAutoDrawable#destroy() operation will preserve the GLEventListenerState.
This is a one-shot flag, i.e. after preserving the GLEventListenerState, the flag is cleared.
A preserved GLEventListenerState will be restored again.
true if supported and successful, false otherwise.