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.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | GLStateKeeper.
Listener for preserve and restore notifications. |
| Modifier and Type | Method and Description |
|---|---|
| public GLEventListenerState | Returns: the preserved and clearedGLEventListenerState if preservation was performed,
otherwise null.Clears the preserved |
| public GLEventListenerState | getPreservedGLState()
Returns the preserved |
| public boolean | Returns: true if GL state preservation is supported in implementation and on current platform, false otherwise.
|
| public boolean | Returns: true if supported and successful, false otherwise.If set to |
| public GLStateKeeper. | Returns: the previousListener.the new lListener.Sets a |
| clearPreservedGLState | back to summary |
|---|---|
| public GLEventListenerState clearPreservedGLState() Clears the preserved
| |
| getPreservedGLState | back to summary |
|---|---|
| public GLEventListenerState getPreservedGLState() Returns the preserved | |
| isGLStatePreservationSupported | back to summary |
|---|---|
public boolean isGLStatePreservationSupported()
| |
| preserveGLStateAtDestroy | back to summary |
|---|---|
| public boolean preserveGLStateAtDestroy(boolean value) If set to
This is a one-shot flag, i.e. after preserving the
A preserved
| |
| setGLStateKeeperListener | back to summary |
|---|---|
| public GLStateKeeper. Sets a
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| glStatePreserveNotify | back to summary |
|---|---|
| public void glStatePreserveNotify(GLStateKeeper glsk) Invoked before preservation. | |
| glStateRestored | back to summary |
|---|---|
| public void glStateRestored(GLStateKeeper glsk) Invoked after restoration. | |