Package org.lwjgl.stb

Class STBIIOCallbacks

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class STBIIOCallbacks
    extends Struct
    Image IO callbacks, used by load_from_callbacks.

    Member documentation

    • read – fill data with size bytes. Return number of bytes actually read.
    • skip – skip the next n bytes, or unget the last -n bytes if negative
    • eof – returns nonzero if we are at end of file/data

    Layout

    struct stbi_io_callbacks {
        stbi_io_callbacks.read read;
        stbi_io_callbacks.skip skip;
        stbi_io_callbacks.eof eof;
    }