|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GLStateKeeper
Interface adding a 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
.
Nested Class Summary | |
---|---|
static interface |
GLStateKeeper.Listener
Listener for preserve and restore notifications. |
Method Summary | |
---|---|
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)
If set to true , the next GLAutoDrawable#destroy() operation will
pull to preserve the GLEventListenerState . |
GLStateKeeper.Listener |
setGLStateKeeperListener(GLStateKeeper.Listener l)
Sets a GLStateKeeper.Listener , overriding the old one. |
Method Detail |
---|
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
pull
to preserve the GLEventListenerState
.
This is a one-shot flag, i.e. after preserving the GLEventListenerState
,
the flag is cleared.
A preserved GLEventListenerState
will be pushed
if realized again.
true
if supported and successful, false
otherwise.isGLStatePreservationSupported()
,
getPreservedGLState()
,
clearPreservedGLState()
GLEventListenerState getPreservedGLState()
GLEventListenerState
if preservation was performed,
otherwise null
.
isGLStatePreservationSupported()
,
preserveGLStateAtDestroy(boolean)
,
clearPreservedGLState()
GLEventListenerState clearPreservedGLState()
GLEventListenerState
from this GLStateKeeper
, without destroying it.
GLEventListenerState
if preservation was performed,
otherwise null
.isGLStatePreservationSupported()
,
preserveGLStateAtDestroy(boolean)
,
getPreservedGLState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |