Kanzi 3.9.10
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.

◆ 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.

◆ resetErrors()

void kanzi::egl::resetErrors ( )
noexcept

Resets EGL error information.

Postcondition
egl::getError() returns EGL_SUCCESS.