Android.Opengl.GLSurfaceView.SetRenderer Method
Set the renderer associated with this view.

Syntax

[Android.Runtime.Register("setRenderer", "(Landroid/opengl/GLSurfaceView$Renderer;)V", "GetSetRenderer_Landroid_opengl_GLSurfaceView_Renderer_Handler")]
public virtual void SetRenderer (GLSurfaceView.IRenderer renderer)

Parameters

renderer
the renderer to use to perform OpenGL drawing.

Remarks

Set the renderer associated with this view. Also starts the thread that will call the renderer, which in turn causes the rendering to start.

This method should be called once and only once in the life-cycle of a GLSurfaceView.

The following GLSurfaceView methods can only be called before setRenderer is called:

The following GLSurfaceView methods can only be called after setRenderer is called:

[Android Documentation]

Requirements

Namespace: Android.Opengl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3