GlimpseCallback

interface GlimpseCallback

Callback used by various Glimpse components for rendering.

Functions

Link copied to clipboard
abstract fun onCreate(gl: GlimpseAdapter)

Called when the OpenGL context is obtained.

Link copied to clipboard
abstract fun onDestroy(gl: GlimpseAdapter)

Called when the OpenGL context is released.

Link copied to clipboard
abstract fun onRender(gl: GlimpseAdapter)

Called when the rendering happens.

Link copied to clipboard
abstract fun onResize(    gl: GlimpseAdapter,     x: Int = 0,     y: Int = 0,     width: Int,     height: Int)

Called when the rendering target is resized.