Class representing an EGL context.
More...
#include <kanzi/core.ui/platform/context_api/egl/egl_context.hpp>
Class representing an EGL context.
typedef void(* kanzi::EGLContext::GLProcPointer) () |
kanzi::EGLContext::EGLContext |
( |
| ) |
|
|
explicit |
Default constructor, creates a no context.
- Postcondition
- egl::getError() returns EGL_SUCCESS.
kanzi::EGLContext::EGLContext |
( |
const EGLDisplay & |
eglDisplay, |
|
|
const EGLConfig & |
eglConfig, |
|
|
::EGLContext |
sharedContext, |
|
|
EGLint |
contextClientVersion |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
eglDisplay | EGL display connection. |
eglConfig | EGL configuration to use. |
sharedContext | EGL context to share data with. |
contextClientVersion | Context client API major version. |
- Postcondition
- egl::getError() returns EGL_SUCCESS.
kanzi::EGLContext::EGLContext |
( |
::EGLContext |
eglContext | ) |
|
|
explicit |
Constructor.
- Parameters
-
eglContext | EGL context handle. |
- Postcondition
- egl::getError() returns EGL_SUCCESS.
Retrieves pointer to GL function.
- Parameters
-
functionName | Name of the function. |
- Returns
- Pointer to the function, or null if not found.
Gets context for current thread.
- Returns
- EGL context handle of the current context, or a no context handle if no context is current.
Gets an no context EGL handle.
- Returns
- EGL context handle with a value representing no context.
bool kanzi::EGLContext::destroy |
( |
const EGLDisplay & |
eglDisplay | ) |
|
Destroys EGL context.
Call this before destructing the object.
- Parameters
-
eglDisplay | EGL display connection. |
- Postcondition
- egl::getError() returns EGL_SUCCESS.
Gets EGL context handle.
- Returns
- EGL context handle.
The documentation for this class was generated from the following file: