Class representing EGL pixmap surface. More...
#include <kanzi/core.ui/platform/context_api/egl/egl_pixmap_surface.hpp>
Public Member Functions | |
bool | destroy (const EGLDisplay &eglDisplay) |
Destroys EGL pixmap surface. | |
EGLPixmapSurface (::EGLSurface eglSurface) | |
Constructor. | |
EGLPixmapSurface (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, EGLNativePixmapType eglNativePixmap) | |
Constructor. | |
KZ_NO_DISCARD::EGLSurface | getNativeHandle () const noexcept |
Gets EGL pixmap surface handle. | |
bool | swapBuffers (const EGLDisplay &eglDisplay) const |
Posts rendering results. | |
Static Public Member Functions | |
static KZ_NO_DISCARD ::EGLSurface | getNoSurface () noexcept |
Gets a no surface EGL surface handle. | |
static KZ_NO_DISCARD optional< EGLPixmapSurface > | tryCreate (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, EGLNativePixmapType eglNativePixmap, const EGLint *surfaceAttributes) noexcept |
Creates an EGL pixmap surface. | |
Class representing EGL pixmap surface.
|
explicit |
Constructor.
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
eglNativePixmap | Pixmap to attach this surface to. |
|
explicit |
Constructor.
eglSurface | EGL pixmap surface handle. |
|
staticnoexcept |
Gets a no surface EGL surface handle.
|
staticnoexcept |
Creates an EGL pixmap surface.
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
eglNativePixmap | Pixmap to attach this surface to. |
surfaceAttributes | Array of extra attributes. |
nullopt | Surface creation failed. |
bool kanzi::EGLPixmapSurface::destroy | ( | const EGLDisplay & | eglDisplay | ) |
Destroys EGL pixmap surface.
Call this before destroying the object.
eglDisplay | EGL display connection. |
bool kanzi::EGLPixmapSurface::swapBuffers | ( | const EGLDisplay & | eglDisplay | ) | const |
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.
eglDisplay | EGL display connection. |
|
noexcept |
Gets EGL pixmap surface handle.