public interface GLStateKeeper
GLEventListenerState
protocol to GLAutoDrawable
s
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 | Interface and Description |
---|---|
static interface |
GLStateKeeper.Listener
Listener for preserve and restore notifications.
|
Modifier and Type | Method and Description |
---|---|
GLEventListenerState |
clearPreservedGLState()
Clears the preserved
GLEventListenerState from this GLStateKeeper , without destroying it. |
GLEventListenerState |
getPreservedGLState()
Returns the preserved
GLEventListenerState if preservation was performed,
otherwise null . |
boolean |
isGLStatePreservationSupported() |
boolean |
preserveGLStateAtDestroy(boolean value)
|
GLStateKeeper.Listener |
setGLStateKeeperListener(GLStateKeeper.Listener l)
Sets a
GLStateKeeper.Listener , overriding the old one. |
GLStateKeeper.Listener setGLStateKeeperListener(GLStateKeeper.Listener l)
GLStateKeeper.Listener
, overriding the old one.l
- the new GLStateKeeper.Listener
.GLStateKeeper.Listener
.boolean isGLStatePreservationSupported()
true
if GL state preservation is supported in implementation and on current platform, false
otherwise.preserveGLStateAtDestroy(boolean)
,
getPreservedGLState()
,
clearPreservedGLState()
boolean preserveGLStateAtDestroy(boolean value)
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.isGLStatePreservationSupported()
,
getPreservedGLState()
,
clearPreservedGLState()
GLEventListenerState getPreservedGLState()
GLEventListenerState
if preservation was performed,
otherwise null
.GLEventListenerState clearPreservedGLState()
GLEventListenerState
from this GLStateKeeper
, without destroying it.GLEventListenerState
if preservation was performed,
otherwise null
.isGLStatePreservationSupported()
,
preserveGLStateAtDestroy(boolean)
,
getPreservedGLState()
Copyright 2010 JogAmp Community.