GlimpseCallback

interface GlimpseCallback

Callback used by various Glimpse components for rendering.

Functions

onCreate
Link copied to clipboard
common
abstract fun onCreate(gl: GlimpseAdapter)
Called when the OpenGL context is obtained.
onDestroy
Link copied to clipboard
common
abstract fun onDestroy(gl: GlimpseAdapter)
Called when the OpenGL context is released.
onRender
Link copied to clipboard
common
abstract fun onRender(gl: GlimpseAdapter)
Called when the rendering happens.
onResize
Link copied to clipboard
common
abstract fun onResize(gl: GlimpseAdapter, x: Int = 0, y: Int = 0, width: Int, height: Int)
Called when the rendering target is resized.