- All Superinterfaces:
Callback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
GLDebugProc relies on preview features of the Java platform:
GLDebugProcrefers to one or more preview APIs:FunctionDescriptor,MemorySegment.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The OpenGL debug message callback.
- Since:
- 0.1.0
- Author:
- squid233
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault FunctionDescriptorPREVIEWReturns the function descriptor of this callback.default MethodHandlehandle(MethodHandles.Lookup lookup) Finds the method handle from the given method handles lookup.voidinvoke(int source, int type, int id, int severity, String message, MemorySegmentPREVIEW userParam) debug callbackdefault voidninvoke(int source, int type, int id, int severity, int length, MemorySegmentPREVIEW message, MemorySegmentPREVIEW userParam)
-
Field Details
-
DESC
-
MTYPE
-
-
Method Details
-
invoke
void invoke(int source, int type, int id, int severity, String message, MemorySegmentPREVIEW userParam) debug callback- Parameters:
source- The source of debug messagetype- The type of debug messageid- the id of the messageseverity- The severity of debug messagemessage- The debug messageuserParam- will be set to the value passed in theuserParamparameter to the most recent call toglDebugMessageCallback.
-
ninvoke
default void ninvoke(int source, int type, int id, int severity, int length, MemorySegmentPREVIEW message, MemorySegmentPREVIEW userParam) -
descriptor
Description copied from interface:CallbackReturns the function descriptor of this callback.- Specified by:
descriptorin interfaceCallback- Returns:
- the function descriptor of this callback
-
handle
default MethodHandle handle(MethodHandles.Lookup lookup) throws NoSuchMethodException, IllegalAccessException Description copied from interface:CallbackFinds the method handle from the given method handles lookup.- Specified by:
handlein interfaceCallback- Parameters:
lookup- the lookup- Returns:
- the method handle
- Throws:
NoSuchMethodException- if the method does not existIllegalAccessException- if access checking fails, or if the method isstatic, or if the method's variable arity modifier bit is set andasVarargsCollectorfails
-
GLDebugProcwhen preview features are enabled.