EGL14.EglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface, EGLContext) 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.
Binds an EGL rendering context and its read and draw surfaces to the calling thread.
[Android.Runtime.Register("eglMakeCurrent", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLSurface;Landroid/opengl/EGLSurface;Landroid/opengl/EGLContext;)Z", "")]
public static bool EglMakeCurrent(Android.Opengl.EGLDisplay? dpy, Android.Opengl.EGLSurface? draw, Android.Opengl.EGLSurface? read, Android.Opengl.EGLContext? ctx);
[<Android.Runtime.Register("eglMakeCurrent", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLSurface;Landroid/opengl/EGLSurface;Landroid/opengl/EGLContext;)Z", "")>]
static member EglMakeCurrent : Android.Opengl.EGLDisplay * Android.Opengl.EGLSurface * Android.Opengl.EGLSurface * Android.Opengl.EGLContext -> bool
Parameters
- dpy
- EGLDisplay
The EGL display associated with the context and surfaces.
- draw
- EGLSurface
The surface for rendering, or EglNoSurface when both draw and read surfaces are omitted.
- read
- EGLSurface
The surface for pixel reads, or EglNoSurface when both draw and read surfaces are omitted.
- ctx
- EGLContext
The context to make current, or EglNoContext to release the current binding. A context can be bound without surfaces only if it supports that mode.
Returns
true if the requested context binding succeeds; otherwise, false.
- 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.