Class representing EGL PBuffer surface. More...
#include <kanzi/core.ui/platform/context_api/egl/egl_pbuffer_surface.hpp>
Public Member Functions | |
bool | destroy (const EGLDisplay &eglDisplay) |
Destroys EGL PBuffer surface. | |
EGLPBufferSurface (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, const int *attributes) | |
Constructor. | |
EGLPBufferSurface (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, int width, int height) | |
Constructor. | |
KZ_NO_DISCARD::EGLSurface | getNativeHandle () const noexcept |
Gets EGL PBuffer 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. | |
Class representing EGL PBuffer surface.
|
explicit |
Constructor.
Creates a PBuffer surface of the default color space, unsuitable for use as a texture.
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
width | Width of the PBuffer surface in pixels. |
height | Height of the PBuffer surface in pixels. |
|
explicit |
Constructor.
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
attributes | Array of extra attributes. |
|
staticnoexcept |
Gets a no surface EGL surface handle.
bool kanzi::EGLPBufferSurface::destroy | ( | const EGLDisplay & | eglDisplay | ) |
Destroys EGL PBuffer surface.
Call this before destructing the object.
eglDisplay | EGL display connection. |
bool kanzi::EGLPBufferSurface::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 PBuffer surface handle.