public static interface TextureSequence.TexSeqEventListener<T extends TextureSequence>
TextureSequence
.
The implementation sending the events, and hence calling down to all listeners, does not necessarily make the user's OpenGL context current.
Further more, the call may happen off-thread, possibly holding another, possibly shared, OpenGL context current.
Hence a user shall not issue any OpenGL, time consuming orTextureSequence
lifecycle operations directly.GLRunnable
objects via GLAutoDrawable.invoke(boolean, GLRunnable)
, orGLEventListener
implementation.Modifier and Type | Method and Description |
---|---|
void |
newFrameAvailable(T ts,
TextureSequence.TextureFrame newFrame,
long when)
Signaling listeners that a new
TextureSequence.TextureFrame is available. |
void newFrameAvailable(T ts, TextureSequence.TextureFrame newFrame, long when)
TextureSequence.TextureFrame
is available.
User shall utilize TextureSequence.getNextTexture(GL)
to dequeue it to maintain
a consistent queue.
ts
- the event sourcenewFrame
- the newly enqueued framewhen
- system time in msec.Copyright 2010 JogAmp Community.