Język

EGL15.EglCreatePlatformWindowSurface Method

Definition

Creates an EGL window surface through the selected native platform.

[Android.Runtime.Register("eglCreatePlatformWindowSurface", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Ljava/nio/Buffer;[JI)Landroid/opengl/EGLSurface;", "", ApiSince=29)]
public static Android.Opengl.EGLSurface? EglCreatePlatformWindowSurface(Android.Opengl.EGLDisplay? dpy, Android.Opengl.EGLConfig? config, Java.Nio.Buffer? native_window, long[]? attrib_list, int offset);
[<Android.Runtime.Register("eglCreatePlatformWindowSurface", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Ljava/nio/Buffer;[JI)Landroid/opengl/EGLSurface;", "", ApiSince=29)>]
static member EglCreatePlatformWindowSurface : Android.Opengl.EGLDisplay * Android.Opengl.EGLConfig * Java.Nio.Buffer * int64[] * int -> Android.Opengl.EGLSurface

Parameters

dpy
EGLDisplay

The EGL display associated with the native window's platform.

config
EGLConfig

The EGL configuration that defines the new surface's buffers.

native_window
Buffer

A non-null buffer whose storage at the current position is passed as the platform's native window pointer.

attrib_list
Int64[]

A non-null array of surface attribute-value pairs, terminated by EGL14.EglNone.

offset
Int32

The nonnegative index of the first surface attribute in attrib_list.

Returns

A wrapper for the returned EGL surface; its native handle is zero if EGL reports surface-creation failure.

Attributes

Remarks

The native window representation is defined by the platform used to obtain dpy. This overload passes the buffer's storage address, not a Java Surface object, to EGL. The attribute array must contain its terminator at or after offset.

Applies to