Mali OpenGL ES SDK  2.0.0
A simple framework to aid development of OpenGL ES applications targeting ARM Mali platforms.
 All Classes Files Functions Variables Enumerations Enumerator
MaliSDK::EGLRuntime Class Reference

Functions for managing EGL. More...

#include <EGLRuntime.h>

List of all members.

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

Detailed Description

Functions for managing EGL.

EGL is the standard windowing environment on embeded devices and is required to use OpenGL ES.


Member Function Documentation

void MaliSDK::EGLRuntime::initializeEGL ( OpenGLESVersion  requestedAPIVersion)
static

Setup EGL environment.

Finds a suitable window configuration and sets up the required context. Different configurations are requested depending on the platform.

Parameters:
[in]requestedAPIVersionThe API version required (OpenGL ES 1.x or OpenGLES 2.0).

Member Data Documentation

EGLint MaliSDK::EGLRuntime::configAttributes
static
Initial value:
{
EGL_SAMPLES, 4,
EGL_RED_SIZE, redSize,
EGL_GREEN_SIZE, greenSize,
EGL_BLUE_SIZE, blueSize,
EGL_ALPHA_SIZE, 0,
EGL_BUFFER_SIZE, bufferSize,
EGL_STENCIL_SIZE, 0,
EGL_RENDERABLE_TYPE, 0,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT | EGL_PIXMAP_BIT,
EGL_DEPTH_SIZE, 16,
EGL_NONE
}

Used to specify the EGL attributes we require from a configuration.

Passed to eglChooseConfig() in order to find a matching configuration.

EGLContext MaliSDK::EGLRuntime::context
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).

EGLint MaliSDK::EGLRuntime::contextAttributes
static
Initial value:
{
EGL_CONTEXT_CLIENT_VERSION, 0,
EGL_NONE
}

Used to specify the EGL attributes we require from a context.

Passed to eglCreateContext() in order to get the correct context type.

EGLDisplay MaliSDK::EGLRuntime::display
static

The EGL display in use (a platform native window handle).

Initialized by initializeEGL().

EGLSurface MaliSDK::EGLRuntime::surface
static

The EGL surface in use.

Initialized by initializeEGL(). This surface is of window type and is used for rendering to the native window.

EGLint MaliSDK::EGLRuntime::windowAttributes
static
Initial value:
{
EGL_NONE
}

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


The documentation for this class was generated from the following files: