Language

EGL14.EglCreateWindowSurface Method

Definition

Creates an EGL rendering surface for a supported Android window object.

[Android.Runtime.Register("eglCreateWindowSurface", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Ljava/lang/Object;[II)Landroid/opengl/EGLSurface;", "")]
public static Android.Opengl.EGLSurface? EglCreateWindowSurface(Android.Opengl.EGLDisplay? dpy, Android.Opengl.EGLConfig? config, Java.Lang.Object? win, int[]? attrib_list, int offset);
[<Android.Runtime.Register("eglCreateWindowSurface", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Ljava/lang/Object;[II)Landroid/opengl/EGLSurface;", "")>]
static member EglCreateWindowSurface : Android.Opengl.EGLDisplay * Android.Opengl.EGLConfig * Java.Lang.Object * int[] * int -> Android.Opengl.EGLSurface

Parameters

dpy
EGLDisplay

The initialized EGL display on which to create the window surface.

config
EGLConfig

The EGL configuration for the window's rendering buffers.

win
Object

A Surface, SurfaceView, SurfaceHolder, or SurfaceTexture that supplies a valid Android native window.

attrib_list
Int32[]

An EglNone-terminated array of window attributes. It may be null for a Surface-based window, but not for a SurfaceTexture.

offset
Int32

The nonnegative index of the first window attribute; ignored on the Surface path when attrib_list is null.

Returns

The created EGL window surface, or a surface 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.

Applies to