Class representing EGL PBuffer surface.
More...
#include <kanzi/core.ui/platform/context_api/egl/egl_pbuffer_surface.hpp>
Class representing EGL PBuffer surface.
◆ EGLPBufferSurface() [1/2]
kanzi::EGLPBufferSurface::EGLPBufferSurface |
( |
const EGLDisplay & |
eglDisplay, |
|
|
const EGLConfig & |
eglConfig, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
explicit |
Constructor.
Creates a PBuffer surface of the default color space, unsuitable for use as a texture.
- Parameters
-
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. |
- Postcondition
- isNoSurface() returns false for this object.
-
egl::getError() returns EGL_SUCCESS.
◆ EGLPBufferSurface() [2/2]
kanzi::EGLPBufferSurface::EGLPBufferSurface |
( |
const EGLDisplay & |
eglDisplay, |
|
|
const EGLConfig & |
eglConfig, |
|
|
const int * |
attributes |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
attributes | Array of extra attributes. |
- Postcondition
- isNoSurface() returns false for this object.
-
egl::getError() returns EGL_SUCCESS.
◆ getNoSurface()
static KZ_NO_DISCARD ::EGLSurface kanzi::EGLPBufferSurface::getNoSurface |
( |
| ) |
|
|
staticnoexcept |
Gets an no surface EGL surface handle.
- Returns
- EGL surface handle with a value representing no surface.
◆ destroy()
bool kanzi::EGLPBufferSurface::destroy |
( |
const EGLDisplay & |
eglDisplay | ) |
|
Destroys EGL PBuffer surface.
Call this before destructing the object.
- Parameters
-
eglDisplay | EGL display connection. |
- Postcondition
- egl::getError() returns EGL_SUCCESS.
◆ swapBuffers()
bool kanzi::EGLPBufferSurface::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.
◆ getNativeHandle()
KZ_NO_DISCARD ::EGLSurface kanzi::EGLPBufferSurface::getNativeHandle |
( |
| ) |
const |
|
noexcept |
Gets EGL PBuffer surface handle.
- Returns
- EGL PBuffer surface handle.
The documentation for this class was generated from the following file: