|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Event listener to notify users of updates regarding the TextureSequence.
More...
Public Member Functions | |
| void | newFrameAvailable (T ts, TextureFrame newFrame, long when) |
Signaling listeners that a new TextureFrame is available. More... | |
Event listener to notify users of updates regarding the 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:
TextureSequence commands on another thread, or GLRunnable objects via GLAutoDrawable#invoke(boolean, GLRunnable), or GLEventListener implementation. Definition at line 155 of file TextureSequence.java.
| void com.jogamp.opengl.util.texture.TextureSequence.TexSeqEventListener< T extends TextureSequence >.newFrameAvailable | ( | T | ts, |
| TextureFrame | newFrame, | ||
| long | when | ||
| ) |
Signaling listeners that a new TextureFrame is available.
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. |