Class representing an EGL display connection. More...
#include <kanzi/platform/platform/context/egl/egl_display.hpp>
Public Member Functions | |
| KZ_NO_DISCARD::EGLConfig | chooseConfig (int graphicsFormatID) const |
| Gets EGL config handle from a graphics format ID. | |
| KZ_NO_DISCARD::EGLConfig | chooseConfig (span< const EGLint > attribs) const |
| Gets EGL config handle using eglChooseConfig and attribute list. | |
| EGLImage | createImage (const EGLContext &eglContext, EGLenum target, void *data, const EGLint *attributes) noexcept |
| Creates a new EGL image. | |
| bool | destroyImage (EGLImage image) noexcept |
| Destroys an EGL image. | |
| EGLDisplay () | |
| Default constructor, creates a no display. | |
| EGLDisplay (::EGLDisplay eglDisplay) | |
| Constructor. | |
| KZ_NO_DISCARD bool | getConfigAttributeValue (::EGLConfig eglConfig, EGLint attribute, EGLint &attributeValue) const noexcept |
| Gets the value of an EGL config attribute. | |
| KZ_NO_DISCARD EGLint | getConfigCount () const noexcept |
| Gets the number of EGL configs available. | |
| KZ_NO_DISCARD vector<::EGLConfig > | getConfigs () const noexcept |
| Gets all EGL configs. | |
| KZ_NO_DISCARD::EGLDisplay | getNativeHandle () const noexcept |
| Gets EGL display handle. | |
| EGLVersion | initialize () |
| Opens the EGL display connection. | |
| bool | makeCurrent (const ::EGLSurface eglDrawSurface, const ::EGLSurface eglReadSurface, const ::EGLContext eglContext) const noexcept |
| Binds surfaces to a context and the current thread. | |
| bool | swapInterval (int interval) |
| Sets minimum number of displayed video frames before a buffer swap. | |
| bool | terminate () |
| Closes the EGL display connection. | |
Static Public Member Functions | |
| static KZ_NO_DISCARD ::EGLDisplay | getCurrentDisplay () noexcept |
| Gets the current EGL display. | |
| static KZ_NO_DISCARD ::EGLNativeDisplayType | getDefaultDisplay () noexcept |
| Gets default native display handle. | |
| static KZ_NO_DISCARD ::EGLDisplay | getDisplay (::EGLNativeDisplayType nativeDisplay) noexcept |
| Gets EGL display handle from native display handle. | |
| static KZ_NO_DISCARD ::EGLDisplay | getNoDisplay () noexcept |
| Gets an no display EGL handle. | |
Class representing an EGL display connection.
A display connection may either be open or closed.
|
explicit |
Default constructor, creates a no display.
|
explicit |
Constructor.
| eglDisplay | EGL display handle. |
|
staticnoexcept |
Gets default native display handle.
|
staticnoexcept |
Gets EGL display handle from native display handle.
| nativeDisplay | Native display handle. |
|
staticnoexcept |
Gets the current EGL display.
|
staticnoexcept |
Gets an no display EGL handle.
| EGLVersion kanzi::EGLDisplay::initialize | ( | ) |
Opens the EGL display connection.
This should be the first function called on a new display object. Use terminate() to close the open connection before destructing the object.
| bool kanzi::EGLDisplay::terminate | ( | ) |
Closes the EGL display connection.
|
noexcept |
Sets minimum number of displayed video frames before a buffer swap.
| interval | Minimum number of video frames to wait before buffer swap. |
|
noexcept |
Creates a new EGL image.
Use destroyImage() to destroy the created image.
| eglContext | Context for which the image is created. |
| target | The image source type. |
| data | The image source. |
| attributes | The image attributes |
Destroys an EGL image.
| image | EGL image to destroy. |
| KZ_NO_DISCARD::EGLConfig kanzi::EGLDisplay::chooseConfig | ( | int | graphicsFormatID | ) | const |
Gets EGL config handle from a graphics format ID.
| graphicsFormatID | Graphics format ID to use. |
Gets EGL config handle using eglChooseConfig and attribute list.
| attribs | List of EGL attributes used to choose the config. The list must be terminated with EGL_NONE. |
|
noexcept |
Gets the number of EGL configs available.
|
noexcept |
Gets all EGL configs.
|
noexcept |
Gets the value of an EGL config attribute.
| eglConfig | EGL config to query. |
| attribute | The attribute to query. |
| attributeValue | Stores the value of the attribute. |
|
noexcept |
Gets EGL display handle.