EglImage Class
Definition
Wraps a native EGLImageKHR handle and destroys it via eglDestroyImageKHR on disposal.
public class EglImage
Constructors
| Name | Description |
|---|---|
| EglImage | Initializes a new Avalonia.OpenGL.Egl.EglImage wrapping an existing EGLImageKHR handle. |
EglImage Constructor
Initializes a new Avalonia.OpenGL.Egl.EglImage wrapping an existing EGLImageKHR handle.
public EglImage(Avalonia.OpenGL.Egl.EglDisplay display, IntPtr handle)
Parameters
display Avalonia.OpenGL.Egl.EglDisplay
The EGL display that owns the image.
handle IntPtr
A valid (non-zero) EGLImageKHR handle.
Exceptions
Methods
| Name | Description |
|---|---|
| Dispose | Destroys the underlying EGLImageKHR. Safe to call more than once. |
Dispose Method
Destroys the underlying EGLImageKHR. Safe to call more than once.
public void Dispose()
Properties
| Name | Description |
|---|---|
| Handle | Gets the native EGLImageKHR handle, or IntPtr.Zero once disposed. |
Handle Property
Gets the native EGLImageKHR handle, or IntPtr.Zero once disposed.
public IntPtr Handle { get; set; }