Package org.lwjgl.stb

Class STBIReadCallback

  • All Implemented Interfaces:
    java.lang.AutoCloseable, STBIReadCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.CallbackI.I, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer


    public abstract class STBIReadCallback
    extends org.lwjgl.system.Callback
    implements STBIReadCallbackI
    Instances of this class may be set to the read field of the STBIIOCallbacks struct.
    • Nested Class Summary

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

        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.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z
      • 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

        POINTER_SHIFT, POINTER_SIZE
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and 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 java.nio.ByteBuffer getData(long data, int size)
      Converts the specified STBIReadCallback arguments to a ByteBuffer.
      • Methods inherited from class org.lwjgl.system.Callback

        __stdcall, address, equals, free, free, get, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.lwjgl.system.CallbackI

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

        close
    • Method Detail

      • create

        public static STBIReadCallback create(long functionPointer)
        Creates a STBIReadCallback instance from the specified function pointer.
      • 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