Class SpvcErrorCallback

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.util.spvc.SpvcErrorCallback
All Implemented Interfaces:
AutoCloseable, CallbackI, NativeResource, Pointer, SpvcErrorCallbackI

public abstract class SpvcErrorCallback extends Callback implements SpvcErrorCallbackI
Callback function: spvc_error_callback
  • Method Details

    • create

      public static SpvcErrorCallback create(long functionPointer)
      Creates a SpvcErrorCallback instance from the specified function pointer.
      Returns:
      the new SpvcErrorCallback
    • createSafe

      public static @Nullable SpvcErrorCallback createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static SpvcErrorCallback create(SpvcErrorCallbackI instance)
      Creates a SpvcErrorCallback instance that delegates to the specified SpvcErrorCallbackI instance.
    • getError

      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 - the error argument to decode
      Returns:
      the error message as a String