Package org.lwjgl.glfw
Class GLFWErrorCallback
java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.glfw.GLFWErrorCallback
- All Implemented Interfaces:
AutoCloseable,GLFWErrorCallbackI,CallbackI,NativeResource,Pointer
Callback function:
GLFWerrorfun-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.glfw.GLFWErrorCallbackI
CIFFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Method Summary
Modifier and TypeMethodDescriptionstatic GLFWErrorCallbackcreate(long functionPointer) Creates aGLFWErrorCallbackinstance from the specified function pointer.static GLFWErrorCallbackcreate(GLFWErrorCallbackI instance) Creates aGLFWErrorCallbackinstance that delegates to the specifiedGLFWErrorCallbackIinstance.static GLFWErrorCallbackReturns aGLFWErrorCallbackinstance that prints the error to theAPIUtil.DEBUG_STREAM.static GLFWErrorCallbackcreatePrint(PrintStream stream) Returns aGLFWErrorCallbackinstance that prints the error in the specifiedPrintStream.static @Nullable GLFWErrorCallbackcreateSafe(long functionPointer) static GLFWErrorCallbackReturns aGLFWErrorCallbackinstance that throws anIllegalStateExceptionwhen an error occurs.static StringgetDescription(long description) Converts the specifiedGLFWErrorCallbackargument to a String.set()SeeSetErrorCallback.Methods inherited from class org.lwjgl.system.Callback
address, equals, free, free, get, getSafe, hashCode, toStringMethods inherited from interface org.lwjgl.glfw.GLFWErrorCallbackI
callback, getCallInterface, invokeMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Method Details
-
create
Creates aGLFWErrorCallbackinstance from the specified function pointer.- Returns:
- the new
GLFWErrorCallback
-
createSafe
-
create
Creates aGLFWErrorCallbackinstance that delegates to the specifiedGLFWErrorCallbackIinstance. -
getDescription
Converts the specifiedGLFWErrorCallbackargument to a String.This method may only be used inside a GLFWErrorCallback invocation.
- Parameters:
description- pointer to the UTF-8 encoded description string- Returns:
- the description as a String
-
createPrint
Returns aGLFWErrorCallbackinstance that prints the error to theAPIUtil.DEBUG_STREAM.- Returns:
- the GLFWerrorCallback
-
createPrint
Returns aGLFWErrorCallbackinstance that prints the error in the specifiedPrintStream.- Parameters:
stream- the PrintStream to use- Returns:
- the GLFWerrorCallback
-
createThrow
Returns aGLFWErrorCallbackinstance that throws anIllegalStateExceptionwhen an error occurs.- Returns:
- the GLFWerrorCallback
-
set
SeeSetErrorCallback.
-