Class representing an EGL context. More...
#include <kanzi/core.ui/platform/context_api/egl/egl_context.hpp>
Public Types | |
typedef void(* | GLProcPointer) () |
Pointer to GL function. | |
Public Member Functions | |
bool | destroy (const EGLDisplay &eglDisplay) |
Destroys EGL context. | |
EGLContext () | |
Default constructor, creates a no context. | |
EGLContext (::EGLContext eglContext) | |
Constructor. | |
EGLContext (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, ::EGLContext sharedContext) | |
Constructor. | |
EGLContext (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, ::EGLContext sharedContext, EGLContextClientVersion contextClientVersion) | |
Constructor. | |
EGLContext (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, ::EGLContext sharedContext, span< const EGLint > attribs) | |
Constructor. | |
KZ_NO_DISCARD::EGLContext | getNativeHandle () const noexcept |
Gets EGL context handle. | |
Static Public Member Functions | |
static KZ_NO_DISCARD ::EGLContext | getCurrentContext () |
Gets context for current thread. | |
static KZ_NO_DISCARD ::EGLContext | getNoContext () noexcept |
Gets an no context EGL handle. | |
static KZ_NO_DISCARD GLProcPointer | getProcAddress (const char *functionName) |
Retrieves pointer to GL function. | |
Class representing an EGL context.
|
explicit |
Default constructor, creates a no context.
|
explicit |
Constructor.
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
sharedContext | EGL context to share data with. |
contextClientVersion | Context client API major version. |
|
explicit |
Constructor.
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
sharedContext | EGL context to share data with. |
|
explicit |
Constructor.
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
sharedContext | EGL context to share data with. |
attribs | List of EGL attributes used to create the context. The list must be terminated with EGL_NONE. |
|
explicit |
Constructor.
eglContext | EGL context handle. |
|
static |
Retrieves pointer to GL function.
functionName | Name of the function. |
|
static |
Gets context for current thread.
|
staticnoexcept |
Gets an no context EGL handle.
bool kanzi::EGLContext::destroy | ( | const EGLDisplay & | eglDisplay | ) |
Destroys EGL context.
Call this before destructing the object.
eglDisplay | EGL display connection. |
|
noexcept |
Gets EGL context handle.