Language

IEGL10.EglInitialize(EGLDisplay, Int32[]) Method

Definition

Initializes an EGL display connection.

[Android.Runtime.Register("eglInitialize", "(Ljavax/microedition/khronos/egl/EGLDisplay;[I)Z", "GetEglInitialize_Ljavax_microedition_khronos_egl_EGLDisplay_arrayIHandler:Javax.Microedition.Khronos.Egl.IEGL10Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool EglInitialize(Javax.Microedition.Khronos.Egl.EGLDisplay? display, int[]? major_minor);
[<Android.Runtime.Register("eglInitialize", "(Ljavax/microedition/khronos/egl/EGLDisplay;[I)Z", "GetEglInitialize_Ljavax_microedition_khronos_egl_EGLDisplay_arrayIHandler:Javax.Microedition.Khronos.Egl.IEGL10Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member EglInitialize : Javax.Microedition.Khronos.Egl.EGLDisplay * int[] -> bool

Parameters

display
EGLDisplay

The EGL display connection to initialize.

major_minor
Int32[]

May be null. Otherwise, it must contain at least two elements and receives the EGL major and minor version numbers at indices 0 and 1 when this method returns true. It remains unchanged when this method returns false.

Returns

true if the initialization operation completed successfully; otherwise, false.

Attributes

Exceptions

display is null, or major_minor is non-null and has fewer than two elements.

Remarks

Android's AOSP EGL binding exposes EGL 1.0 through major_minor.

On Android, initialization is reference counted. A later successful call for an initialized display returns true without reinitializing the display, and each successful call requires a corresponding call to EglTerminate(EGLDisplay).

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