Kanzi 4.1.0
kanzi::egl Namespace Reference

Functions

bool bindApi (unsigned int api) noexcept
 Selects current EGL rendering API.
 
KZ_NO_DISCARD int getError () noexcept
 Gets EGL error information and clears it.
 
void resetErrors () noexcept
 Resets EGL error information.
 

Function Documentation

◆ bindApi()

bool kanzi::egl::bindApi ( unsigned int api)
noexcept

Selects current EGL rendering API.

Parameters
apiOne of EGL_OPENGL_API, EGL_OPENGL_ES_API, or EGL_OPENVG_API.
Returns
True on success, false on failure.
Since
Kanzi 4.1.0 renamed from bindAPI.
Attention
This feature is experimental and is likely to change in future releases.

◆ getError()

KZ_NO_DISCARD int kanzi::egl::getError ( )
noexcept

Gets EGL error information and clears it.

Returns the error code of the last called EGL function.

Return values
EGL_SUCCESSThe last call succeeded.
Returns
EGL error code.
Attention
This feature is experimental and is likely to change in future releases.

◆ resetErrors()

void kanzi::egl::resetErrors ( )
noexcept

Resets EGL error information.

Postcondition
egl::getError() returns EGL_SUCCESS.
Attention
This feature is experimental and is likely to change in future releases.