Package org.lwjgl.stb

Class STBIWriteCallback

    • Method Detail

      • create

        public static STBIWriteCallback create(long functionPointer)
        Creates a STBIWriteCallback instance from the specified function pointer.
      • create

        public static STBIWriteCallback create(STBIWriteCallbackI instance)
        Creates a STBIWriteCallback instance that delegates to the specified STBIWriteCallbackI instance.
      • getData

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

        This method may only be used inside a STBIWriteCallback invocation.

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