public static interface TextureSequence.TexSeqEventListener<T extends TextureSequence>
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 or
TextureSequence operations directly.
Instead, the user shall:
void newFrameAvailable(T ts, TextureSequence.TextureFrame newFrame, long when)
User shall utilize
TextureSequence.getNextTexture(GL) to dequeue it to maintain
a consistent queue.
ts- the event source
newFrame- the newly enqueued frame
when- system time in msec.
Copyright 2010 JogAmp Community.