Android.Opengl.GLSurfaceView.RenderMode Property
Get the current rendering mode.

Syntax

[get: Android.Runtime.Register("getRenderMode", "()I", "GetGetRenderModeHandler")]
[set: Android.Runtime.Register("setRenderMode", "(I)V", "GetSetRenderMode_IHandler")]
public virtual Rendermode RenderMode { get; set; }

See Also

GLSurfaceView.RendermodeContinuously
GLSurfaceView.RendermodeWhenDirty
GLSurfaceView.RendermodeContinuously
GLSurfaceView.RendermodeWhenDirty

Value

Documentation for this section has not yet been entered.

Remarks

Get method documentation [Android Documentation]

Get the current rendering mode. May be called from any thread. Must not be called before a renderer has been set.

Set method documentation [Android Documentation]

Set the rendering mode. When renderMode is RENDERMODE_CONTINUOUSLY, the renderer is called repeatedly to re-render the scene. When renderMode is RENDERMODE_WHEN_DIRTY, the renderer only rendered when the surface is created, or when GLSurfaceView.RequestRender is called. Defaults to RENDERMODE_CONTINUOUSLY. Using RENDERMODE_WHEN_DIRTY can improve battery life and overall system performance by allowing the GPU and CPU to idle when the view does not need to be updated. This method can only be called after GLSurfaceView.SetRenderer(.IRenderer)

Requirements

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