Class representing EGL window surface. More...
#include <kanzi/core.ui/platform/context_api/egl/egl_window_surface.hpp>
Public Member Functions | |
| bool | destroy (const EGLDisplay &eglDisplay) |
| Destroys EGL window surface. | |
| EGLWindowSurface (::EGLSurface eglSurface) | |
| Constructor. | |
| EGLWindowSurface (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, EGLNativeWindowType eglNativeWindow) | |
| Constructor. | |
| EGLWindowSurface (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, EGLNativeWindowType eglNativeWindow, SurfaceColorSpace surfaceColorSpace) | |
| Constructor. | |
| KZ_NO_DISCARD::EGLSurface | getNativeHandle () const noexcept |
| Gets EGL window 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< EGLWindowSurface > | tryCreate (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, EGLNativeWindowType eglNativeWindow, const EGLint *surfaceAttributes) noexcept |
| Creates an EGL window surface. | |
Class representing EGL window surface.
|
explicit |
Constructor.
| eglDisplay | EGL display connection. |
| eglConfig | EGL configuration to use. |
| eglNativeWindow | Window to attach this surface to. |
|
explicit |
Constructor.
| eglDisplay | EGL display connection. |
| eglConfig | EGL configuration to use. |
| eglNativeWindow | Window to attach this surface to. |
| surfaceColorSpace | Color space to use for the surface. |
|
explicit |
Constructor.
| eglSurface | EGL window surface handle. |
|
staticnoexcept |
Gets a no surface EGL surface handle.
|
staticnoexcept |
Creates an EGL window surface.
| eglDisplay | EGL display connection. |
| eglConfig | EGL configuration to use. |
| eglNativeWindow | Window to attach this surface to. |
| surfaceAttributes | Array of extra attributes. |
| nullopt | Surface creation failed. |
| bool kanzi::EGLWindowSurface::destroy | ( | const EGLDisplay & | eglDisplay | ) |
Destroys EGL window surface.
Call this before destructing the object.
| eglDisplay | EGL display connection. |
| bool kanzi::EGLWindowSurface::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 window surface handle.