Package org.lwjgl.stb

Class STBIIOCallbacks

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<STBIIOCallbacks>
org.lwjgl.stb.STBIIOCallbacks
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class STBIIOCallbacks extends org.lwjgl.system.Struct<STBIIOCallbacks> implements org.lwjgl.system.NativeResource
Image IO callbacks, used by load_from_callbacks.

Layout


 struct stbi_io_callbacks {
     int (*read) (void *user, char *data, int size);
     void (*skip) (void *user, int n);
     int (*eof) (void *user);
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • READ

      public static final int READ
      The struct member offsets.
    • SKIP

      public static final int SKIP
      The struct member offsets.
    • EOF

      public static final int EOF
      The struct member offsets.
  • Constructor Details

    • STBIIOCallbacks

      public STBIIOCallbacks(ByteBuffer container)
      Creates a STBIIOCallbacks instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details