1 // C function void glDebugMessageCallbackKHR ( GLDEBUGPROCKHR callback, const void *userParam ) 2 3 public interface DebugProcKHR { onMessage(int source, int type, int id, int severity, String message)4 void onMessage(int source, int type, int id, int severity, String message); 5 } 6 glDebugMessageCallbackKHR(DebugProcKHR callback)7 public static native void glDebugMessageCallbackKHR(DebugProcKHR callback); 8 9