Class Overview
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
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)
|
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
Constants
public
static
final
int
CONFIG_CHECK_GL_ERROR
Check glError() after every call.
Constant Value:
1
(0x00000001)
public
static
final
int
CONFIG_CHECK_THREAD
Check if all calls are on the same thread.
Constant Value:
2
(0x00000002)
public
static
final
int
CONFIG_LOG_ARGUMENT_NAMES
Print argument names when logging GL Calls.
Constant Value:
4
(0x00000004)
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
Public Methods
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
| 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. |
Returns
- the wrapped EGL interface.
public
static
GL
wrap
(GL gl, int configFlags, Writer log)