Package org.lwjgl.stb

Class STBIWriteCallback

    • Method Detail

      • create

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

        @Nullable
        public static STBIWriteCallback createSafe​(long functionPointer)
        Like create, but returns null if functionPointer is NULL.
      • 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