Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
RGLStrings Class Reference

OpenGL/EGL string helpers. More...

#include <RGLStrings.h>

Static Public Member Functions

static const char * EGLError (EGLint error) noexcept
 Returns a human-readable name for an EGL error code.
 

Detailed Description

OpenGL/EGL string helpers.

Utilities for converting EGL enums into human-readable strings, mainly used for logging.

Member Function Documentation

◆ EGLError()

static const char * EGLError ( EGLint  error)
staticnoexcept

Returns a human-readable name for an EGL error code.

Parameters
errorAn EGL error code as returned by eglGetError().
Returns
A static, null-terminated string with the error's name (e.g. "EGL_BAD_DISPLAY"), or "unknown error" if the code is not recognized.