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. More... | |
Public Member Functions | |
| bool | destroy (const EGLDisplay &eglDisplay) |
| Destroys EGL context. More... | |
| EGLContext () | |
| Default constructor, creates a no context. More... | |
| EGLContext (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig, ::EGLContext sharedContext, EGLint contextClientVersion) | |
| Constructor. More... | |
| EGLContext (::EGLContext eglContext) | |
| Constructor. More... | |
| KZ_NO_DISCARD ::EGLContext | getNativeHandle () const noexcept |
| Gets EGL context handle. More... | |
Static Public Member Functions | |
| static KZ_NO_DISCARD ::EGLContext | getCurrentContext () |
| Gets context for current thread. More... | |
| static KZ_NO_DISCARD ::EGLContext | getNoContext () noexcept |
| Gets an no context EGL handle. More... | |
| static KZ_NO_DISCARD GLProcPointer | getProcAddress (const char *functionName) |
| Retrieves pointer to GL function. More... | |
Class representing an EGL context.
| typedef void(* kanzi::EGLContext::GLProcPointer) () |
Pointer to GL function.
|
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.
| 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.