Language

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

Definition

Binds a rendering context to the calling thread and to its draw and read surfaces.

[Android.Runtime.Register("eglMakeCurrent", "(Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLSurface;Ljavax/microedition/khronos/egl/EGLSurface;Ljavax/microedition/khronos/egl/EGLContext;)Z", "GetEglMakeCurrent_Ljavax_microedition_khronos_egl_EGLDisplay_Ljavax_microedition_khronos_egl_EGLSurface_Ljavax_microedition_khronos_egl_EGLSurface_Ljavax_microedition_khronos_egl_EGLContext_Handler:Javax.Microedition.Khronos.Egl.IEGL10Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool EglMakeCurrent(Javax.Microedition.Khronos.Egl.EGLDisplay? display, Javax.Microedition.Khronos.Egl.EGLSurface? draw, Javax.Microedition.Khronos.Egl.EGLSurface? read, Javax.Microedition.Khronos.Egl.EGLContext? context);
[<Android.Runtime.Register("eglMakeCurrent", "(Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLSurface;Ljavax/microedition/khronos/egl/EGLSurface;Ljavax/microedition/khronos/egl/EGLContext;)Z", "GetEglMakeCurrent_Ljavax_microedition_khronos_egl_EGLDisplay_Ljavax_microedition_khronos_egl_EGLSurface_Ljavax_microedition_khronos_egl_EGLSurface_Ljavax_microedition_khronos_egl_EGLContext_Handler:Javax.Microedition.Khronos.Egl.IEGL10Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member EglMakeCurrent : Javax.Microedition.Khronos.Egl.EGLDisplay * Javax.Microedition.Khronos.Egl.EGLSurface * Javax.Microedition.Khronos.Egl.EGLSurface * Javax.Microedition.Khronos.Egl.EGLContext -> bool

Parameters

display
EGLDisplay

The EGL display connection.

draw
EGLSurface

The draw surface, or EglNoSurface when releasing the current context.

read
EGLSurface

The read surface, or EglNoSurface when releasing the current context.

context
EGLContext

The rendering context to attach to the surfaces. Pass EglNoContext with both surfaces set to EglNoSurface to release the current context.

Returns

true if the binding or release operation completed successfully; otherwise, false.

Attributes

Exceptions

display, draw, read, or context is null.

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