Package org.lwjgl.stb

Class STBIWriteCallback

    • Method Detail

      • create

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

        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.

        data - the STBIWriteCallback data argument
        size - the STBIWriteCallback size argument
        the data as a ByteBuffer