onDrawFrame

open override fun onDrawFrame(gl: GL10?)

Called when a frame needs to be drawn into the surface. Sets camera and draws the cube.

Parameters

gl

OpenGL context.