queueEvent

open fun queueEvent(r: Runnable)

Queue a runnable to be run on the GL rendering thread. This can be used to communicate with the Renderer on the rendering thread. Must not be called before a renderer has been set.

Parameters

r

the runnable to be run on the GL rendering thread.