Package org.lwjgl.stb

Class STBIReadCallback

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static STBIReadCallback create​(long functionPointer)
      Creates a STBIReadCallback instance from the specified function pointer.
      static STBIReadCallback create​(STBIReadCallbackI instance)
      Creates a STBIReadCallback instance that delegates to the specified STBIReadCallbackI instance.
      static STBIReadCallback createSafe​(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
      static java.nio.ByteBuffer getData​(long data, int size)
      Converts the specified STBIReadCallback arguments to a ByteBuffer.
      • Methods inherited from class org.lwjgl.system.Callback

        address, equals, free, free, get, getSafe, hashCode, toString
      • Methods inherited from interface org.lwjgl.system.CallbackI

        address
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • create

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

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

        public static STBIReadCallback create​(STBIReadCallbackI instance)
        Creates a STBIReadCallback instance that delegates to the specified STBIReadCallbackI instance.
      • getData

        public static java.nio.ByteBuffer getData​(long data,
                                                  int size)
        Converts the specified STBIReadCallback arguments to a ByteBuffer.

        This method may only be used inside a STBIReadCallback invocation.

        Parameters:
        data - the STBIReadCallback data argument
        size - the STBIReadCallback size argument
        Returns:
        the data as a ByteBuffer