Class Texture

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Texture.Buffer
      An array of Texture structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int ECOLORSPACE
      ETYPE
      HANDLE
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      Texture​(java.nio.ByteBuffer container)
      Creates a Texture instance at the current position of the specified ByteBuffer container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Texture calloc()
      Returns a new Texture instance allocated with memCalloc.
      static Texture.Buffer calloc​(int capacity)
      Returns a new Texture.Buffer instance allocated with memCalloc.
      static Texture callocStack()
      Returns a new Texture instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      static Texture.Buffer callocStack​(int capacity)
      Returns a new Texture.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      static Texture.Buffer callocStack​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new Texture.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static Texture callocStack​(org.lwjgl.system.MemoryStack stack)
      Returns a new Texture instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static Texture create()
      Returns a new Texture instance allocated with BufferUtils.
      static Texture.Buffer create​(int capacity)
      Returns a new Texture.Buffer instance allocated with BufferUtils.
      static Texture create​(long address)
      Returns a new Texture instance for the specified memory address.
      static Texture.Buffer create​(long address, int capacity)
      Create a Texture.Buffer instance at the specified memory.
      static Texture createSafe​(long address)
      Like create, but returns null if address is NULL.
      static Texture.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      int eColorSpace()
      Returns the value of the eColorSpace field.
      Texture eColorSpace​(int value)
      Sets the specified value to the eColorSpace field.
      int eType()
      Returns the value of the eType field.
      Texture eType​(int value)
      Sets the specified value to the eType field.
      long handle()
      Returns the value of the handle field.
      Texture handle​(long value)
      Sets the specified value to the handle field.
      static Texture malloc()
      Returns a new Texture instance allocated with memAlloc.
      static Texture.Buffer malloc​(int capacity)
      Returns a new Texture.Buffer instance allocated with memAlloc.
      static Texture mallocStack()
      Returns a new Texture instance allocated on the thread-local MemoryStack.
      static Texture.Buffer mallocStack​(int capacity)
      Returns a new Texture.Buffer instance allocated on the thread-local MemoryStack.
      static Texture.Buffer mallocStack​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new Texture.Buffer instance allocated on the specified MemoryStack.
      static Texture mallocStack​(org.lwjgl.system.MemoryStack stack)
      Returns a new Texture instance allocated on the specified MemoryStack.
      static int neColorSpace​(long struct)
      Unsafe version of eColorSpace().
      static void neColorSpace​(long struct, int value)
      Unsafe version of eColorSpace.
      static int neType​(long struct)
      Unsafe version of eType().
      static void neType​(long struct, int value)
      Unsafe version of eType.
      static long nhandle​(long struct)
      Unsafe version of handle().
      static void nhandle​(long struct, long value)
      Unsafe version of handle.
      Texture set​(long handle, int eType, int eColorSpace)
      Initializes this struct with the specified values.
      Texture set​(Texture src)
      Copies the specified struct data to this struct.
      int sizeof()  
      static void validate​(long struct)
      Validates pointer members that should not be NULL.
      static void validate​(long array, int count)
      Calls validate(long) for each struct contained in the specified struct array.
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close, free
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HANDLE, ETYPE, ECOLORSPACE

        The struct member offsets.
    • Constructor Detail

      • Texture

        public Texture​(java.nio.ByteBuffer container)
        Creates a Texture 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • handle

        public long handle()
        Returns the value of the handle field.
      • eType

        public int eType()
        Returns the value of the eType field.
      • eColorSpace

        public int eColorSpace()
        Returns the value of the eColorSpace field.
      • handle

        public Texture handle​(long value)
        Sets the specified value to the handle field.
      • eType

        public Texture eType​(int value)
        Sets the specified value to the eType field.
      • eColorSpace

        public Texture eColorSpace​(int value)
        Sets the specified value to the eColorSpace field.
      • set

        public Texture set​(long handle,
                           int eType,
                           int eColorSpace)
        Initializes this struct with the specified values.
      • set

        public Texture set​(Texture src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

        public static Texture malloc()
        Returns a new Texture instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static Texture calloc()
        Returns a new Texture instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static Texture create()
        Returns a new Texture instance allocated with BufferUtils.
      • create

        public static Texture create​(long address)
        Returns a new Texture instance for the specified memory address.
      • createSafe

        @Nullable
        public static Texture createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

        public static Texture.Buffer malloc​(int capacity)
        Returns a new Texture.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static Texture.Buffer calloc​(int capacity)
        Returns a new Texture.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

        public static Texture.Buffer create​(int capacity)
        Returns a new Texture.Buffer instance allocated with BufferUtils.
        Parameters:
        capacity - the buffer capacity
      • create

        public static Texture.Buffer create​(long address,
                                            int capacity)
        Create a Texture.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static Texture.Buffer createSafe​(long address,
                                                int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        public static Texture mallocStack()
        Returns a new Texture instance allocated on the thread-local MemoryStack.
      • callocStack

        public static Texture callocStack()
        Returns a new Texture instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static Texture mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new Texture instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static Texture callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new Texture instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • mallocStack

        public static Texture.Buffer mallocStack​(int capacity)
        Returns a new Texture.Buffer instance allocated on the thread-local MemoryStack.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static Texture.Buffer callocStack​(int capacity)
        Returns a new Texture.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

        public static Texture.Buffer mallocStack​(int capacity,
                                                 org.lwjgl.system.MemoryStack stack)
        Returns a new Texture.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static Texture.Buffer callocStack​(int capacity,
                                                 org.lwjgl.system.MemoryStack stack)
        Returns a new Texture.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nhandle

        public static long nhandle​(long struct)
        Unsafe version of handle().
      • neType

        public static int neType​(long struct)
        Unsafe version of eType().
      • neColorSpace

        public static int neColorSpace​(long struct)
        Unsafe version of eColorSpace().
      • nhandle

        public static void nhandle​(long struct,
                                   long value)
        Unsafe version of handle.
      • neType

        public static void neType​(long struct,
                                  int value)
        Unsafe version of eType.
      • neColorSpace

        public static void neColorSpace​(long struct,
                                        int value)
        Unsafe version of eColorSpace.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate
      • validate

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array