Package com.jogamp.opengl.util.texture
Interface TextureSequence.TexSeqEventListener<T extends TextureSequence>
-
- All Known Subinterfaces:
GLMediaPlayer.GLMediaFrameListener
- Enclosing interface:
- TextureSequence
public static interface TextureSequence.TexSeqEventListener<T extends TextureSequence>Event listener to notify users of updates regarding theTextureSequence.Implementations sending events down to all listeners, while not necessarily making the user's OpenGL context current.
Events may be sent from a 3rd-party thread, possibly holding another, maybe shared, OpenGL context current.
Hence a user shall not issue any OpenGL, time consuming orTextureSequenceoperations directly.
Instead, the user shall:- off-load complex or
TextureSequencecommands on another thread, or - injecting
GLRunnableobjects viaGLAutoDrawable.invoke(boolean, GLRunnable), or - simply changing a volatile state of their
GLEventListenerimplementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnewFrameAvailable(T ts, TextureSequence.TextureFrame newFrame, long when)Signaling listeners that a newTextureSequence.TextureFrameis available.
-
-
-
Method Detail
-
newFrameAvailable
void newFrameAvailable(T ts, TextureSequence.TextureFrame newFrame, long when)
Signaling listeners that a newTextureSequence.TextureFrameis available.User shall utilize
TextureSequence.getNextTexture(GL)to dequeue it to maintain a consistent queue.- Parameters:
ts- the event sourcenewFrame- the newly enqueued framewhen- system time in msec.
-
-