public class GLDebugHelper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CONFIG_CHECK_GL_ERROR
Check glError() after every call.
|
static int |
CONFIG_CHECK_THREAD
Check if all calls are on the same thread.
|
static int |
CONFIG_LOG_ARGUMENT_NAMES
Print argument names when logging GL Calls.
|
static 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.
|
Constructor and Description |
---|
GLDebugHelper() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final int CONFIG_CHECK_GL_ERROR
public static final int CONFIG_CHECK_THREAD
public static final int CONFIG_LOG_ARGUMENT_NAMES
public static final int ERROR_WRONG_THREAD
public static EGL wrap(EGL egl, int configFlags, Writer log)
egl
- the existing GL interface. Must implement EGL and EGL10. May
optionally implement EGL11 as well.configFlags
- A bitmask of error checking flags.log
- - null to disable logging, non-null to enable logging.