Class representing EGL window surface. More...
#include <kanzi/platform/platform/context/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, span< EGLint > surfaceAttributes) | |
| 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 EGLWindowSurface | create (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, EGLNativeWindowType eglNativeWindow, span< EGLint > surfaceAttributes) noexcept |
| Creates an EGL window surface. | |
| static KZ_NO_DISCARD EGLWindowSurface | create (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, EGLNativeWindowType eglNativeWindow, SurfaceColorSpace surfaceColorSpace) noexcept |
| Creates an EGL window surface. | |
| static KZ_NO_DISCARD ::EGLSurface | getNoSurface () noexcept |
| Gets a no surface EGL surface handle. | |
Class representing EGL window surface.
|
explicit |
Constructor.
If construction succeeds, isNoSurface() returns false for this object. If construction fails, isNoSurface() returns true for this object, and egl::getError() returns the failure cause.
| eglDisplay | EGL display connection. |
| eglConfig | EGL configuration to use. |
| eglNativeWindow | Window to attach this surface to. |
| surfaceAttributes | Span of extra attributes. If the span is not empty, last element must be EGL_NONE. |
|
explicit |
Constructor.
| eglSurface | EGL window surface handle. |
|
staticnoexcept |
Gets a no surface EGL surface handle.
|
staticnoexcept |
Creates an EGL window surface.
Logs the used surface attributes.
| eglDisplay | EGL display connection. |
| eglConfig | EGL configuration to use. |
| eglNativeWindow | Window to attach this surface to. |
| surfaceAttributes | Span of extra attributes. If the span is not empty, last element must be EGL_NONE. |
|
staticnoexcept |
Creates an EGL window surface.
Logs the used surface attributes.
| eglDisplay | EGL display connection. |
| eglConfig | EGL configuration to use. |
| eglNativeWindow | Window to attach this surface to. |
| surfaceColorSpace | Color space to use for the surface. |
| 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.