EGLBoolean
EGLBoolean is a typedef used in the Khronos EGL API to represent boolean results. It is defined in the EGL headers as an unsigned int type and is used as the return type for many EGL functions. The macros EGL_FALSE and EGL_TRUE define the two possible values: EGL_FALSE is 0 and EGL_TRUE is 1. In practice, a zero value is treated as false, while a non-zero value is treated as true.
Functions in the EGL API commonly return EGLBoolean to indicate success or failure. Examples include eglInitialize,
EGLBoolean exists to maintain portability and ABI compatibility across platforms and languages that interact with EGL,
See also: EGL API, Khronos Group, EGLBoolean usage in function prototypes, and the EGL_TRUE/EGL_FALSE macros.