interface GlThreadRunner
abstract fun getEGLContext(): EGLContext! |
|
abstract fun queueDestroy(obj: GlObject!): Unit abstract fun queueDestroy(obj: GlObject!, sync: Boolean!): Unit |
|
abstract fun queueRebound(obj: GlObject!): Unit |
|
abstract fun runWithGlContext(runnable: Runnable!): Unit |
class GLThread : TerminableThread, GlThreadRunner
A generic GL Thread. Takes care of initializing EGL and GL. Delegates to a Renderer instance to do the actual drawing. Can be configured to render continuously or on request. |