Lingua

GLSurfaceView.IRenderer.OnDrawFrame(IGL10) Metodo

Definizione

Chiamato per disegnare la cornice corrente.

[Android.Runtime.Register("onDrawFrame", "(Ljavax/microedition/khronos/opengles/GL10;)V", "GetOnDrawFrame_Ljavax_microedition_khronos_opengles_GL10_Handler:Android.Opengl.GLSurfaceView/IRendererInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnDrawFrame(Javax.Microedition.Khronos.Opengles.IGL10? gl);
[<Android.Runtime.Register("onDrawFrame", "(Ljavax/microedition/khronos/opengles/GL10;)V", "GetOnDrawFrame_Ljavax_microedition_khronos_opengles_GL10_Handler:Android.Opengl.GLSurfaceView/IRendererInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnDrawFrame : Javax.Microedition.Khronos.Opengles.IGL10 -> unit

Parametri

gl
IGL10

interfaccia GL. Usare instanceof per verificare se l'interfaccia supporta interfacce GL11 o successive.

Attributi

Commenti

Chiamato per disegnare la cornice corrente.

Questo metodo è responsabile del disegno della cornice corrente.

L'implementazione di questo metodo è in genere simile alla seguente:

void onDrawFrame(GL10 gl) {
                gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
                //... other gl calls to render the scene ...
            }

per android.opengl.GLSurfaceView.Renderer.onDrawFrame(javax.microedition.khronos.opengles.GL10).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a