onSurfaceChanged

open override fun onSurfaceChanged(gl: GL10?, width: Int, height: Int)

Called when size of surface where drawing occurs changes.

Parameters

gl

OpenGL context.

width

new surface width expressed in pixels.

height

new surface height expressed in pixels.