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 (::EGLSurface eglSurface) noexcept | |
| 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. | |
| static KZ_NO_DISCARD optional< EGLPBufferSurface > | tryCreate (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, int width, int height, const SurfaceColorSpace surfaceColorSpace) noexcept |
| Creates a PBuffer surface of the default color space, unsuitable for use as a texture. | |
| static KZ_NO_DISCARD optional< EGLPBufferSurface > | tryCreate (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, span< EGLint > surfaceAttributes) noexcept |
| Creates an EGL PBuffer surface. | |
Class representing EGL PBuffer surface.
|
explicitnoexcept |
Constructor.
| eglSurface | EGL window surface handle. |
|
staticnoexcept |
Gets a no surface EGL surface handle.
|
staticnoexcept |
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. |
| surfaceColorSpace | Color space to use for the surface. |
| nullopt | Surface creation failed. |
surfaceColorSpace.
|
staticnoexcept |
Creates an EGL PBuffer surface.
| eglDisplay | EGL display connection. |
| eglConfig | EGL configuration to use. |
| surfaceAttributes | Span of extra attributes. If the span is not empty, last element must be EGL_NONE. |
| nullopt | Surface creation failed. |
surfaceAttributes, removed attributes. | 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.