Top Description Inners Constructors Methods
org.lwjgl.util.spvc

public abstract Class SpvcErrorCallback

extends Callback
implements SpvcErrorCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.util.spvc.SpvcErrorCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.util.spvc.SpvcErrorCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the context_set_error_callback method.

Type


void (*invoke) (
    void *userdata,
    char const *error
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
SpvcErrorCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static SpvcErrorCallback

Returns:

the new SpvcErrorCallback
create
(long functionPointer)

Creates a SpvcErrorCallback instance from the specified function pointer.

public static SpvcErrorCallback
create(SpvcErrorCallbackI instance)

Creates a SpvcErrorCallback instance that delegates to the specified SpvcErrorCallbackI instance.

public static SpvcErrorCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

public static String

Returns:

the error message as a String
getError
(long
the error argument to decode
error
)

Converts the specified spvc_error_callback argument to a String.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

SpvcErrorCallbackback to summary
protected SpvcErrorCallback()
SpvcErrorCallbackback to summary
pack-priv SpvcErrorCallback(long functionPointer)

Method Detail

createback to summary
public static SpvcErrorCallback create(long functionPointer)

Creates a SpvcErrorCallback instance from the specified function pointer.

Returns:SpvcErrorCallback

the new SpvcErrorCallback

createback to summary
public static SpvcErrorCallback create(SpvcErrorCallbackI instance)

Creates a SpvcErrorCallback instance that delegates to the specified SpvcErrorCallbackI instance.

createSafeback to summary
public static SpvcErrorCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
getErrorback to summary
public static String getError(long error)

Converts the specified spvc_error_callback argument to a String.

This method may only be used inside a SpvcErrorCallback invocation.

Parameters
error:long

the error argument to decode

Returns:String

the error message as a String

org.lwjgl.util.spvc back to summary

private final Class SpvcErrorCallback.Container

extends SpvcErrorCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final SpvcErrorCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, SpvcErrorCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long userdata, long error)

Implements org.lwjgl.util.spvc.SpvcErrorCallbackI.invoke.

Get notified in a callback when an error triggers.
Inherited from org.lwjgl.util.spvc.SpvcErrorCallback:
createcreatecreateSafegetError

Field Detail

delegateback to summary
private final SpvcErrorCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, SpvcErrorCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long userdata, long error)

Implements org.lwjgl.util.spvc.SpvcErrorCallbackI.invoke.

Doc from org.lwjgl.util.spvc.SpvcErrorCallbackI.invoke.

Get notified in a callback when an error triggers. Useful for debugging.

Annotations
@Override