public abstract class GLFWErrorCallback extends org.lwjgl.system.Callback implements GLFWErrorCallbackI
SetErrorCallback method.
void (*) (
int error,
char *description
)org.lwjgl.system.CallbackI.B, org.lwjgl.system.CallbackI.D, org.lwjgl.system.CallbackI.F, org.lwjgl.system.CallbackI.I, org.lwjgl.system.CallbackI.J, org.lwjgl.system.CallbackI.N, org.lwjgl.system.CallbackI.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.ZSIGNATURE| Modifier and Type | Method and Description |
|---|---|
static GLFWErrorCallback |
create(GLFWErrorCallbackI instance)
Creates a
GLFWErrorCallback instance that delegates to the specified GLFWErrorCallbackI instance. |
static GLFWErrorCallback |
create(long functionPointer)
Creates a
GLFWErrorCallback instance from the specified function pointer. |
static GLFWErrorCallback |
createPrint()
Returns a
GLFWErrorCallback instance that prints the error to the APIUtil.DEBUG_STREAM. |
static GLFWErrorCallback |
createPrint(java.io.PrintStream stream)
Returns a
GLFWErrorCallback instance that prints the error in the specified PrintStream. |
static GLFWErrorCallback |
createSafe(long functionPointer)
|
static GLFWErrorCallback |
createThrow()
Returns a
GLFWErrorCallback instance that throws an IllegalStateException when an error occurs. |
static java.lang.String |
getDescription(long description)
Converts the specified
GLFWErrorCallback argument to a String. |
GLFWErrorCallback |
set()
See
SetErrorCallback. |
__stdcall, address, equals, free, free, get, getSafe, hashCode, toStringcallback, getSignature, invokepublic static GLFWErrorCallback create(long functionPointer)
GLFWErrorCallback instance from the specified function pointer.GLFWErrorCallback@Nullable public static GLFWErrorCallback createSafe(long functionPointer)
public static GLFWErrorCallback create(GLFWErrorCallbackI instance)
GLFWErrorCallback instance that delegates to the specified GLFWErrorCallbackI instance.public static java.lang.String getDescription(long description)
GLFWErrorCallback argument to a String.
This method may only be used inside a GLFWErrorCallback invocation.
description - pointer to the UTF-8 encoded description stringpublic static GLFWErrorCallback createPrint()
GLFWErrorCallback instance that prints the error to the APIUtil.DEBUG_STREAM.public static GLFWErrorCallback createPrint(java.io.PrintStream stream)
GLFWErrorCallback instance that prints the error in the specified PrintStream.stream - the PrintStream to usepublic static GLFWErrorCallback createThrow()
GLFWErrorCallback instance that throws an IllegalStateException when an error occurs.public GLFWErrorCallback set()
SetErrorCallback.Copyright LWJGL. All Rights Reserved. License terms.