Class NkDrawVertexLayoutElement

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ATTRIBUTE, FORMAT, OFFSET

        The struct member offsets.
    • Constructor Detail

      • NkDrawVertexLayoutElement

        public NkDrawVertexLayoutElement​(java.nio.ByteBuffer container)
        Creates a NkDrawVertexLayoutElement 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
      • attribute

        public int attribute()
        Returns the value of the attribute field.
      • format

        public int format()
        Returns the value of the format field.
      • offset

        public long offset()
        Returns the value of the offset field.
      • set

        public NkDrawVertexLayoutElement set​(int attribute,
                                             int format,
                                             long offset)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

        public static NkDrawVertexLayoutElement.Buffer callocStack​(int capacity,
                                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new NkDrawVertexLayoutElement.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
      • nattribute

        public static int nattribute​(long struct)
        Unsafe version of attribute().
      • nformat

        public static int nformat​(long struct)
        Unsafe version of format().
      • noffset

        public static long noffset​(long struct)
        Unsafe version of offset().
      • nattribute

        public static void nattribute​(long struct,
                                      int value)
        Unsafe version of attribute.
      • nformat

        public static void nformat​(long struct,
                                   int value)
        Unsafe version of format.
      • noffset

        public static void noffset​(long struct,
                                   long value)
        Unsafe version of offset.