Class representing an EGL context. More...
#include <kanzi/platform/platform/gl/context_api/egl_ng/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, 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. | |
Friends | |
| bool | operator!= (const EGLContext &lhs, const EGLContext &rhs) noexcept |
| Inequality operator. | |
| bool | operator== (const EGLContext &lhs, const EGLContext &rhs) noexcept |
| Equality operator. | |
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. |
| 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.
|
friend |
Equality operator.
| lhs | The left operand. |
| rhs | The right operand. |
|
friend |
Inequality operator.
| lhs | The left operand. |
| rhs | The right operand. |