Język

GLSurfaceView.IEGLContextFactory.CreateContext Method

Definition

Called to create the view's EGL rendering context.

[Android.Runtime.Register("createContext", "(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLConfig;)Ljavax/microedition/khronos/egl/EGLContext;", "GetCreateContext_Ljavax_microedition_khronos_egl_EGL10_Ljavax_microedition_khronos_egl_EGLDisplay_Ljavax_microedition_khronos_egl_EGLConfig_Handler:Android.Opengl.GLSurfaceView/IEGLContextFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Javax.Microedition.Khronos.Egl.EGLContext? CreateContext(Javax.Microedition.Khronos.Egl.IEGL10? egl, Javax.Microedition.Khronos.Egl.EGLDisplay? display, Javax.Microedition.Khronos.Egl.EGLConfig? eglConfig);
[<Android.Runtime.Register("createContext", "(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLConfig;)Ljavax/microedition/khronos/egl/EGLContext;", "GetCreateContext_Ljavax_microedition_khronos_egl_EGL10_Ljavax_microedition_khronos_egl_EGLDisplay_Ljavax_microedition_khronos_egl_EGLConfig_Handler:Android.Opengl.GLSurfaceView/IEGLContextFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CreateContext : Javax.Microedition.Khronos.Egl.IEGL10 * Javax.Microedition.Khronos.Egl.EGLDisplay * Javax.Microedition.Khronos.Egl.EGLConfig -> Javax.Microedition.Khronos.Egl.EGLContext

Parameters

egl
IEGL10

The EGL10 interface used for context operations.

display
EGLDisplay

The initialized EGL display selected for the view.

eglConfig
EGLConfig

The framebuffer configuration selected by the view's EGL configuration chooser.

Returns

The created EGL context. GLSurfaceView treats null or the EGL_NO_CONTEXT sentinel as creation failure.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to