EGL14.EglCreateContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a rendering context for the calling thread's selected EGL client API.
[Android.Runtime.Register("eglCreateContext", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Landroid/opengl/EGLContext;[II)Landroid/opengl/EGLContext;", "")]
public static Android.Opengl.EGLContext? EglCreateContext(Android.Opengl.EGLDisplay? dpy, Android.Opengl.EGLConfig? config, Android.Opengl.EGLContext? share_context, int[]? attrib_list, int offset);
[<Android.Runtime.Register("eglCreateContext", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Landroid/opengl/EGLContext;[II)Landroid/opengl/EGLContext;", "")>]
static member EglCreateContext : Android.Opengl.EGLDisplay * Android.Opengl.EGLConfig * Android.Opengl.EGLContext * int[] * int -> Android.Opengl.EGLContext
Parameters
- dpy
- EGLDisplay
The initialized EGL display on which to create the context.
- config
- EGLConfig
The EGL framebuffer configuration for the new context.
- share_context
- EGLContext
A compatible context whose shareable client API objects will be shared, or EglNoContext to create an unshared context.
- attrib_list
- Int32[]
A non-null array of context attribute-value pairs, terminated by EglNone.
- offset
- Int32
The nonnegative index of the first context attribute in attrib_list.
Returns
The created EGL context, or a context wrapper with a zero native handle if native EGL creation fails.
- 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.