org.lwjgl.opengl
Class AMDDebugOutputCallback

java.lang.Object
  extended by org.lwjgl.opengl.AMDDebugOutputCallback
All Implemented Interfaces:
PointerWrapper

public final class AMDDebugOutputCallback
extends Object
implements PointerWrapper

Instances of this class are needed to use the callback functionality of the AMD_debug_output extension. A debug context must be current before creating instances of this class. Users of this class may provide implementations of the Handler interface to receive notifications. The same Handler instance may be used by different contexts but it is not recommended. Handler notifications are synchronized.

Author:
Spasi

Nested Class Summary
static interface AMDDebugOutputCallback.Handler
          Implementations of this interface can be used to receive AMD_debug_output notifications.
 
Constructor Summary
AMDDebugOutputCallback()
          Creates a AMDDebugOutputCallback with a default callback handler.
AMDDebugOutputCallback(AMDDebugOutputCallback.Handler handler)
          Creates a AMDDebugOutputCallback with the specified callback handlers.
 
Method Summary
 long getPointer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AMDDebugOutputCallback

public AMDDebugOutputCallback()
Creates a AMDDebugOutputCallback with a default callback handler. The default handler will simply print the message on System.err.


AMDDebugOutputCallback

public AMDDebugOutputCallback(AMDDebugOutputCallback.Handler handler)
Creates a AMDDebugOutputCallback with the specified callback handlers. The handler's handleMessage method will be called whenever debug output is generated by the GL.

Parameters:
handler - the callback handler
Method Detail

getPointer

public long getPointer()
Specified by:
getPointer in interface PointerWrapper


Copyright © 2002-2009 lwjgl.org. All Rights Reserved.