Compartir a través de


iPhoneOSGameView.CreateFrameBuffer Método

Definición

Crea el framebuffer para que se puedan realizar operaciones de OpenGL.

protected virtual void CreateFrameBuffer ();
abstract member CreateFrameBuffer : unit -> unit
override this.CreateFrameBuffer : unit -> unit

Excepciones

ContextRenderingApi no se ha inicializado.

La instancia se Dispose(Boolean) ha invocado en ella.

Comentarios

Este método se invoca para crear una IGraphicsContext implementación, crear un EAGLContexty inicializar el contexto GL para que exista un framebuffer y renderbuffer para futuras llamadas GL.

Este método se invoca mediante: LayoutSubviews(), Run()y Run(Double).

protected override CreateFrameBuffer()
{
    try {
        ContextRenderingApi = EAGLRenderingAPI.OpenGLES2;
        base.CreateFrameBuffer();
    } catch (Exception) {
        // device doesn't support OpenGLES 2.0; retry with 1.1:
        ContextRenderingApi = EAGLRenderingAPI.OpenGLES1;
        base.CreateFrameBuffer();
    }
}

Se aplica a