Observer

interface Observer

Observer for waiting render engine/state updates.

Functions

Link copied to clipboard
abstract fun onDrawFrame()

Called from onDrawFrame before rendering is started. This is intended to be used for animation purposes.

Link copied to clipboard
abstract fun onPageSizeChanged(width: Int, height: Int)

Called once page size is changed. Width and height tell the page size in pixels making it possible to update textures accordingly.

Link copied to clipboard
abstract fun onSurfaceCreated()

Called from onSurfaceCreated to enable texture reinitialization.