Kanzi  3.9.7
Kanzi Engine API
kanzi::egl Namespace Reference

Functions

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

Function Documentation

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.
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.
void kanzi::egl::resetErrors ( )
noexcept

Resets EGL error information.

Postcondition
egl::getError() returns EGL_SUCCESS.