![]() |
Mali OpenGL ES SDK
2.0.0
A simple framework to aid development of OpenGL ES applications targeting ARM Mali platforms.
|
Functions for managing EGL. More...
#include <EGLRuntime.h>
Public Types | |
enum | OpenGLESVersion { OPENGLES1, OPENGLES2, OPENGLES3 } |
An enum to define OpenGL ES versions. |
Static Public Member Functions | |
static void | initializeEGL (OpenGLESVersion requestedAPIVersion) |
Setup EGL environment. | |
static void | terminateEGL (void) |
Shuts down EGL. |
Static Public Attributes | |
static bool | disableAntiAliasing = false |
static EGLint | configAttributes [] |
Used to specify the EGL attributes we require from a configuration. | |
static EGLint | contextAttributes [] |
Used to specify the EGL attributes we require from a context. | |
static EGLint | windowAttributes [] |
Used to specify the EGL attributes we require from a window surface. | |
static EGLDisplay | display |
The EGL display in use (a platform native window handle). | |
static EGLContext | context |
The EGL context in use. | |
static EGLSurface | surface |
The EGL surface in use. | |
static EGLConfig | config |
The selected EGL config which matches the required attributes. |
Static Private Attributes | |
static const int | redSize = 8 |
static const int | greenSize = 8 |
static const int | blueSize = 8 |
static const int | bufferSize = 32 |
Functions for managing EGL.
EGL is the standard windowing environment on embeded devices and is required to use OpenGL ES.
|
static |
Setup EGL environment.
Finds a suitable window configuration and sets up the required context. Different configurations are requested depending on the platform.
[in] | requestedAPIVersion | The API version required (OpenGL ES 1.x or OpenGLES 2.0). |
|
static |
Used to specify the EGL attributes we require from a configuration.
Passed to eglChooseConfig() in order to find a matching configuration.
|
static |
The EGL context in use.
Created by initializeEGL() using the selected config and the API version requested (OpenGL ES 1.x or OpenGL ES 2.0).
|
static |
Used to specify the EGL attributes we require from a context.
Passed to eglCreateContext() in order to get the correct context type.
|
static |
The EGL display in use (a platform native window handle).
Initialized by initializeEGL().
|
static |
The EGL surface in use.
Initialized by initializeEGL(). This surface is of window type and is used for rendering to the native window.
|
static |
Used to specify the EGL attributes we require from a window surface.
Passed to eglCreateWindowSurface() to get the required window surface type.
Using the defaults (EGL_RENDER_BUFFER = EGL_BACK_BUFFER).