iPhoneOSGameView.CreateFrameBuffer Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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.
LayerColorFormat 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();
}
}