# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Ctors | Methods | Inherited Methods

# 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`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### CONFIG_CHECK_GL_ERROR

    public static final int CONFIG_CHECK_GL_ERROR

Check glError() after every call.

Constant Value: 1 (0x00000001)

### CONFIG_CHECK_THREAD

    public static final int CONFIG_CHECK_THREAD

Check if all calls are on the same thread.

Constant Value: 2 (0x00000002)

### CONFIG_LOG_ARGUMENT_NAMES

    public static final int CONFIG_LOG_ARGUMENT_NAMES

Print argument names when logging GL Calls.

Constant Value: 4 (0x00000004)

### ERROR_WRONG_THREAD

    public static final 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

    public GLDebugHelper ()

## Public methods

### wrap

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

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

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

Parameters
`gl` | `GL`
`configFlags` | `int`
`log` | `Writer`

Returns
`GL` |

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*