EGL15.EglCreateImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an EGL image that refers to an existing client API image resource.
[Android.Runtime.Register("eglCreateImage", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLContext;IJ[JI)Landroid/opengl/EGLImage;", "", ApiSince=29)]
public static Android.Opengl.EGLImage? EglCreateImage(Android.Opengl.EGLDisplay? dpy, Android.Opengl.EGLContext? context, int target, long buffer, long[]? attrib_list, int offset);
[<Android.Runtime.Register("eglCreateImage", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLContext;IJ[JI)Landroid/opengl/EGLImage;", "", ApiSince=29)>]
static member EglCreateImage : Android.Opengl.EGLDisplay * Android.Opengl.EGLContext * int * int64 * int64[] * int -> Android.Opengl.EGLImage
Parameters
- dpy
- EGLDisplay
The EGL display used to create the image.
- context
- EGLContext
The client API context that owns the source resource, or EglNoContext when the target does not require a context.
- target
- Int32
The EGL token that identifies the type of the source resource.
- buffer
- Int64
The source resource name or native handle, passed to EGL as an EGLClientBuffer value.
- attrib_list
- Int64[]
A non-null array of image attribute-value pairs, terminated by EGL14.EglNone.
- offset
- Int32
The nonnegative index of the first image attribute in attrib_list.
Returns
The created image, or null if EGL returns EGL_NO_IMAGE.
- Attributes
Remarks
The target and attributes select the source resource and, where applicable, its mipmap level or depth slice. This Android overload requires an attribute array even when no optional attributes are needed; supply an EGL14.EglNone terminator at the selected offset.