25 #include <EGL/eglext.h>
26 #define EGL_CHECK(x) \
29 EGLint eglError = eglGetError(); \
30 if(eglError != EGL_SUCCESS) { \
31 LOGE("eglGetError() = %i (0x%.8x) at %s:%i\n", (signed int)eglError, (unsigned int)eglError, __FILE__, __LINE__); \
static EGLint contextAttributes[]
Used to specify the EGL attributes we require from a context.
static EGLSurface surface
The EGL surface in use.
static EGLint configAttributes[]
Used to specify the EGL attributes we require from a configuration.
static void setEGLSamples(EGLint requiredEGLSamples)
Set the value of EGL_SAMPLES (AntiAliasing level) to be requested.
Functions for managing EGL.
static EGLConfig findConfig(bool strictMatch)
Search for an EGL config with the attributes set in configAttributes.
static EGLDisplay display
The EGL display in use (a platform native window handle).
static EGLContext context
The EGL context in use.
static void terminateEGL(void)
Shuts down EGL.
static void initializeEGL(OpenGLESVersion requestedAPIVersion)
Setup EGL environment.
static EGLint windowAttributes[]
Used to specify the EGL attributes we require from a window surface.
static EGLConfig config
The selected EGL config which matches the required attributes.
OpenGLESVersion
An enum to define OpenGL ES versions.