surfaceChanged

abstract fun surfaceChanged(width: Int, height: Int)

Method to call when the dimensions of the rendering surface have changed while the graphic context is still valid.

Note: This method should be called from the GLSurfaceView thread.

Parameters

width

The width of the surface after the change.

height

The height of the surface after the change.