Skip to content

Most visited

Recently visited

navigation
Added in API level 1

GLDebugHelper

public class GLDebugHelper
extends Object

java.lang.Object
   ↳ android.opengl.GLDebugHelper


A helper class for debugging OpenGL ES applications. Wraps the supplied GL interface with a new GL interface that adds support for error checking and logging.

Summary

Constants

int CONFIG_CHECK_GL_ERROR

Check glError() after every call.

int CONFIG_CHECK_THREAD

Check if all calls are on the same thread.

int CONFIG_LOG_ARGUMENT_NAMES

Print argument names when logging GL Calls.

int ERROR_WRONG_THREAD

The Error number used in the GLException that is thrown if CONFIG_CHECK_THREAD is enabled and you call OpenGL ES on the a different thread.

Public constructors

GLDebugHelper()

Public methods

static EGL wrap(EGL egl, int configFlags, Writer log)

Wrap an existing EGL interface in a new EGL interface that adds support for error checking and/or logging.

static GL wrap(GL gl, int configFlags, Writer log)

Inherited methods

From class java.lang.Object

Constants

CONFIG_CHECK_GL_ERROR

Added in API level 1
int CONFIG_CHECK_GL_ERROR

Check glError() after every call.

Constant Value: 1 (0x00000001)

CONFIG_CHECK_THREAD

Added in API level 1
int CONFIG_CHECK_THREAD

Check if all calls are on the same thread.

Constant Value: 2 (0x00000002)

CONFIG_LOG_ARGUMENT_NAMES

Added in API level 1
int CONFIG_LOG_ARGUMENT_NAMES

Print argument names when logging GL Calls.

Constant Value: 4 (0x00000004)

ERROR_WRONG_THREAD

Added in API level 1
int ERROR_WRONG_THREAD

The Error number used in the GLException that is thrown if CONFIG_CHECK_THREAD is enabled and you call OpenGL ES on the a different thread.

Constant Value: 28672 (0x00007000)

Public constructors

GLDebugHelper

Added in API level 1
GLDebugHelper ()

Public methods

wrap

Added in API level 1
EGL wrap (EGL egl, 
                int configFlags, 
                Writer log)

Wrap an existing EGL interface in a new EGL interface that adds support for error checking and/or logging.

Parameters
egl EGL: the existing GL interface. Must implement EGL and EGL10. May optionally implement EGL11 as well.
configFlags int: A bitmask of error checking flags.
log Writer: - null to disable logging, non-null to enable logging.
Returns
EGL the wrapped EGL interface.

wrap

Added in API level 1
GL wrap (GL gl, 
                int configFlags, 
                Writer log)

Parameters
gl GL
configFlags int
log Writer
Returns
GL
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.