Class representing an EGL context.
More...
#include <kanzi/platform/platform/gl/context_api/egl_ng/egl_context.hpp>
Class representing an EGL context.
- Since
- 4.1.0 removed constructor to prevent creating EGLContext with supplied context version. Use constructor that accepts attributes instead.
-
4.1.0 removed constructor to prevent creating EGLContext with implicitly-defined context version. Use constructor that accepts attributes instead.
- Attention
- This feature is experimental and is likely to change in future releases.
◆ GLProcPointer
◆ EGLContext() [1/3]
| kanzi::EGLContext::EGLContext |
( |
| ) |
|
|
explicit |
Default constructor, creates a no context.
- Postcondition
- egl::getError() returns EGL_SUCCESS.
◆ EGLContext() [2/3]
Constructor.
- Parameters
-
| 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. |
- Postcondition
- egl::getError() returns EGL_SUCCESS.
◆ EGLContext() [3/3]
| kanzi::EGLContext::EGLContext |
( |
::EGLContext | eglContext | ) |
|
|
explicit |
Constructor.
- Parameters
-
| eglContext | EGL context handle. |
- Postcondition
- egl::getError() returns EGL_SUCCESS.
◆ getProcAddress()
Retrieves pointer to GL function.
- Parameters
-
| functionName | Name of the function. |
- Returns
- Pointer to the function, or null if not found.
◆ getCurrentContext()
Gets context for current thread.
- Returns
- EGL context handle of the current context, or a no context handle if no context is current.
◆ getNoContext()
Gets an no context EGL handle.
- Returns
- EGL context handle with a value representing no context.
◆ destroy()
Destroys EGL context.
Call this before destructing the object. The destructor does not destroy the EGL context. Destroying a no context does nothing.
- Parameters
-
| eglDisplay | EGL display connection. |
- Returns
- If the EGL context was destroyed or this is a no context, true, otherwise false.
- Postcondition
- This is a no context.
-
egl::getError() returns EGL_SUCCESS.
◆ getNativeHandle()
| KZ_NO_DISCARD::EGLContext kanzi::EGLContext::getNativeHandle |
( |
| ) |
const |
|
noexcept |
Gets EGL context handle.
- Returns
- EGL context handle.
◆ operator==
Equality operator.
- Parameters
-
| lhs | The left operand. |
| rhs | The right operand. |
- Returns
- If the left and right operand are equal, true, otherwise false.
◆ operator!=
Inequality operator.
- Parameters
-
| lhs | The left operand. |
| rhs | The right operand. |
- Returns
- If the left and right operand are not equal, true, otherwise false.
The documentation for this class was generated from the following file: