Class representing EGL window surface.
More...
#include <kanzi/core.ui/platform/context_api/egl/egl_window_surface.hpp>
Class representing EGL window surface.
kanzi::EGLWindowSurface::EGLWindowSurface |
( |
const EGLDisplay & |
eglDisplay, |
|
|
const EGLConfig & |
eglConfig, |
|
|
EGLNativeWindowType |
eglNativeWindow |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
eglNativeWindow | Window to attach this surface to. |
- Postcondition
- isNoSurface() returns false for this object.
-
egl::getError() returns EGL_SUCCESS.
kanzi::EGLWindowSurface::EGLWindowSurface |
( |
::EGLSurface |
eglSurface | ) |
|
|
explicit |
Constructor.
- Parameters
-
eglSurface | EGL window surface handle. |
- Postcondition
- egl::getError() returns EGL_SUCCESS.
static KZ_NO_DISCARD ::EGLSurface kanzi::EGLWindowSurface::getNoSurface |
( |
| ) |
|
|
staticnoexcept |
Gets an no surface EGL surface handle.
- Returns
- EGL surface handle with a value representing no surface.
Creates an EGL window surface.
- Parameters
-
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
eglNativeWindow | Window to attach this surface to. |
surfaceAttributes | Array of extra attributes. |
- Return values
-
- Returns
- The newly created EGL window surface.
bool kanzi::EGLWindowSurface::destroy |
( |
const EGLDisplay & |
eglDisplay | ) |
|
Destroys EGL window surface.
Call this before destructing the object.
- Parameters
-
eglDisplay | EGL display connection. |
- Postcondition
- egl::getError() returns EGL_SUCCESS.
bool kanzi::EGLWindowSurface::swapBuffers |
( |
const EGLDisplay & |
eglDisplay | ) |
const |
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.
- Parameters
-
eglDisplay | EGL display connection. |
- See also
- swapInterval().
- Returns
- True on success, false on failure.
- Postcondition
- egl::getError() returns EGL_SUCCESS.
KZ_NO_DISCARD::EGLSurface kanzi::EGLWindowSurface::getNativeHandle |
( |
| ) |
const |
|
noexcept |
Gets EGL window surface handle.
- Returns
- EGL window surface handle.
The documentation for this class was generated from the following file: