An instance must be bound to the current thread's GLContext to achieve thread safety.
A native callback function is registered at enable(true),
which forwards received messages to the added GLDebugListener directly.
Hence the GLDebugListener#messageSent(GLDebugMessage) implementation shall
return as fast as possible.
In case no GL_ARB_debug_output is available, but GL_AMD_debug_output,
the messages are translated to ARB GLDebugMessage, using GLDebugMessage#translateAMDEvent(com..
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final GLContextImpl | |
| private static final boolean | |
| private static final int | |
| private static final int | |
| private static final int | |
| private boolean | |
| private String | |
| private String | |
| private int | |
| private long | |
| private long | |
| private final ListenerSyncedImplStub | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final void | |
| public final void | |
| pack-priv final void | |
| private final long | |
| public final String | Returns: The extension implementing the GLDebugMessage feature, eitherGL_ARB_debug_output or GL_AMD_debug_output.
If unavailable null is returned.
|
| protected final void | |
| protected final void | glDebugMessageARB(final int source, final int type, final int id, final int severity, final String msg)
|
| public void | |
| public void | |
| private static native boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final int | |
| private native long | |
| public final void | |
| private final void | |
| public final void | |
| private final void | |
| private native void |
| ctx | back to summary |
|---|---|
| private final GLContextImpl ctx | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| EXT_AMD | back to summary |
|---|---|
| private static final int EXT_AMD | |
| EXT_ARB | back to summary |
|---|---|
| private static final int EXT_ARB | |
| EXT_KHR | back to summary |
|---|---|
| private static final int EXT_KHR | |
| extAvailable | back to summary |
|---|---|
| private boolean extAvailable | |
| extName | back to summary |
|---|---|
| private String extName | |
| extSuffix | back to summary |
|---|---|
| private String extSuffix | |
| extType | back to summary |
|---|---|
| private int extType | |
| glDebugMessageCallbackProcAddress | back to summary |
|---|---|
| private long glDebugMessageCallbackProcAddress | |
| handle | back to summary |
|---|---|
| private long handle | |
| listenerImpl | back to summary |
|---|---|
| private final ListenerSyncedImplStub<GLDebugListener> listenerImpl | |
| synchronous | back to summary |
|---|---|
| private boolean synchronous | |
| GLDebugMessageHandler | back to summary |
|---|---|
public GLDebugMessageHandler(final GLContextImpl ctx)
| |
| addListener | back to summary |
|---|---|
| public final void addListener(final GLDebugListener listener) | |
| addListener | back to summary |
|---|---|
| public final void addListener(final int index, final GLDebugListener listener) | |
| enable | back to summary |
|---|---|
| public final void enable(final boolean enable) throws GLException | |
| enableImpl | back to summary |
|---|---|
| pack-priv final void enableImpl(final boolean enable) throws GLException | |
| getAddressFor | back to summary |
|---|---|
| private final long getAddressFor(final ProcAddressTable table, final String functionName) | |
| getExtension | back to summary |
|---|---|
public final String getExtension()
| |
| glDebugMessageAMD | back to summary |
|---|---|
| protected final void glDebugMessageAMD(final int id, final int category, final int severity, final String msg) | |
| glDebugMessageARB | back to summary |
|---|---|
| protected final void glDebugMessageARB(final int source, final int type, final int id, final int severity, final String msg) | |
| init | back to summary |
|---|---|
| public void init(final boolean enable) | |
| init | back to summary |
|---|---|
| public void init() | |
| initIDs0 | back to summary |
|---|---|
| private static native boolean initIDs0() | |
| isAvailable | back to summary |
|---|---|
| public final boolean isAvailable() | |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled() | |
| isExtensionAMD | back to summary |
|---|---|
| public final boolean isExtensionAMD() | |
| isExtensionARB | back to summary |
|---|---|
| public final boolean isExtensionARB() | |
| isExtensionKHR | back to summary |
|---|---|
| public final boolean isExtensionKHR() | |
| isExtensionKHRARB | back to summary |
|---|---|
| public final boolean isExtensionKHRARB() | |
| isSynchronous | back to summary |
|---|---|
| public final boolean isSynchronous() | |
| listenerSize | back to summary |
|---|---|
| public final int listenerSize() | |
| register0 | back to summary |
|---|---|
| private native long register0(long glDebugMessageCallbackProcAddress, int extType) | |
| removeListener | back to summary |
|---|---|
| public final void removeListener(final GLDebugListener listener) | |
| sendMessage | back to summary |
|---|---|
| private final void sendMessage(final GLDebugMessage msg) | |
| setSynchronous | back to summary |
|---|---|
| public final void setSynchronous(final boolean synchronous) | |
| setSynchronousImpl | back to summary |
|---|---|
| private final void setSynchronousImpl() | |
| unregister0 | back to summary |
|---|---|
| private native void unregister0(long glDebugMessageCallbackProcAddress, long handle) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | messageSent(final GLDebugMessage event)
Implements com. GLDebugMessage message sent from native GL implementation.
|
| threadDump | back to summary |
|---|---|
| pack-priv boolean threadDump | |
| StdErrGLDebugListener | back to summary |
|---|---|
| public StdErrGLDebugListener(final boolean threadDump) | |
| messageSent | back to summary |
|---|---|
| public void messageSent(final GLDebugMessage event) Implements com. Doc from com. Handle Since this method is invoked directly by the GL implementation, it shall return as fast as possible.
| |