Compartilhar via


iPhoneOSGameView.CreateFrameBuffer Método

Definição

Cria o framebuffer para que as operações OpenGL possam ser executadas.

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

Exceções

ContextRenderingApi não foi inicializado.

A instância foi Dispose(Boolean) invocada nela.

Comentários

Esse método é invocado para criar uma implementação IGraphicsContext , criar um EAGLContexte inicializar o contexto GL para que existam um framebuffer e renderbuffer para chamadas GL futuras.

Esse método é invocado por: LayoutSubviews(), Run()e 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();
    }
}

Aplica-se a