Język

EGL14.EglMakeCurrent(EGLDisplay, EGLSurface, EGLSurface, EGLContext) Method

Definition

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 no draw surface is used.

read
EGLSurface

The surface for pixel reads, or EglNoSurface when no read surface is used.

ctx
EGLContext

The context to make current, or EglNoContext to release the current binding.

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.

Applies to