Package org.lwjgl.glfw
Class GLFWErrorCallback
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Callback
-
- org.lwjgl.glfw.GLFWErrorCallback
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, GLFWErrorCallbackI, CallbackI, CallbackI.V, NativeResource, Pointer
public abstract class GLFWErrorCallback extends Callback implements GLFWErrorCallbackI
Instances of this class may be passed to theSetErrorCallback
method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
CallbackI.B, CallbackI.D, CallbackI.F, CallbackI.I, CallbackI.J, CallbackI.P, CallbackI.S, CallbackI.V, CallbackI.Z
-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static GLFWErrorCallback
create(GLFWErrorCallbackI instance)
Creates aGLFWErrorCallback
instance that delegates to the specifiedGLFWErrorCallbackI
instance.static GLFWErrorCallback
create(long functionPointer)
Creates aGLFWErrorCallback
instance from the specified function pointer.static GLFWErrorCallback
createPrint()
Returns aGLFWErrorCallback
instance that prints the error to theAPIUtil.DEBUG_STREAM
.static GLFWErrorCallback
createPrint(java.io.PrintStream stream)
Returns aGLFWErrorCallback
instance that prints the error in the specifiedPrintStream
.static GLFWErrorCallback
createThrow()
Returns aGLFWErrorCallback
instance that throws anIllegalStateException
when an error occurs.static java.lang.String
getDescription(long description)
Converts the specifiedGLFWErrorCallback
argument to a String.GLFWErrorCallback
set()
SeeSetErrorCallback
.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.glfw.GLFWErrorCallbackI
address, callback, invoke
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Method Detail
-
create
public static GLFWErrorCallback create(long functionPointer)
Creates aGLFWErrorCallback
instance from the specified function pointer.
-
create
public static GLFWErrorCallback create(GLFWErrorCallbackI instance)
Creates aGLFWErrorCallback
instance that delegates to the specifiedGLFWErrorCallbackI
instance.
-
getDescription
public static java.lang.String getDescription(long description)
Converts the specifiedGLFWErrorCallback
argument 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
public static GLFWErrorCallback createPrint()
Returns aGLFWErrorCallback
instance that prints the error to theAPIUtil.DEBUG_STREAM
.- Returns:
- the GLFWerrorCallback
-
createPrint
public static GLFWErrorCallback createPrint(java.io.PrintStream stream)
Returns aGLFWErrorCallback
instance that prints the error in the specifiedPrintStream
.- Parameters:
stream
- the PrintStream to use- Returns:
- the GLFWerrorCallback
-
createThrow
public static GLFWErrorCallback createThrow()
Returns aGLFWErrorCallback
instance that throws anIllegalStateException
when an error occurs.- Returns:
- the GLFWerrorCallback
-
set
public GLFWErrorCallback set()
SeeSetErrorCallback
.
-
-