Class AIAnimMesh.Buffer

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Iterable<AIAnimMesh>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Enclosing class:
    AIAnimMesh

    public static class AIAnimMesh.Buffer
    extends org.lwjgl.system.StructBuffer<AIAnimMesh,AIAnimMesh.Buffer>
    implements org.lwjgl.system.NativeResource
    An array of AIAnimMesh structs.
    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new AIAnimMesh.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by AIAnimMesh.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • mColors

        public org.lwjgl.PointerBuffer mColors()
        Returns a PointerBuffer view of the mColors field.
      • mColors

        @Nullable
        public AIColor4D.Buffer mColors​(int index)
        Returns a AIColor4D view of the pointer at the specified index of the mColors field.
      • mTextureCoords

        public org.lwjgl.PointerBuffer mTextureCoords()
        Returns a PointerBuffer view of the mTextureCoords field.
      • mTextureCoords

        @Nullable
        public AIVector3D.Buffer mTextureCoords​(int index)
        Returns a AIVector3D view of the pointer at the specified index of the mTextureCoords field.
      • mNumVertices

        public int mNumVertices()
        Returns the value of the mNumVertices field.
      • mWeight

        public float mWeight()
        Returns the value of the mWeight field.
      • mName

        public AIAnimMesh.Buffer mName​(java.util.function.Consumer<AIString> consumer)
        Passes the mName field to the specified Consumer.
      • mColors

        public AIAnimMesh.Buffer mColors​(org.lwjgl.PointerBuffer value)
        Copies the specified PointerBuffer to the mColors field.
      • mColors

        public AIAnimMesh.Buffer mColors​(int index,
                                         java.util.function.Consumer<AIColor4D.Buffer> consumer)
        Passes the element at index of the mColors field to the specified Consumer.
      • mTextureCoords

        public AIAnimMesh.Buffer mTextureCoords​(org.lwjgl.PointerBuffer value)
        Copies the specified PointerBuffer to the mTextureCoords field.
      • mTextureCoords

        public AIAnimMesh.Buffer mTextureCoords​(int index,
                                                java.util.function.Consumer<AIVector3D.Buffer> consumer)
        Passes the element at index of the mTextureCoords field to the specified Consumer.
      • mNumVertices

        public AIAnimMesh.Buffer mNumVertices​(int value)
        Sets the specified value to the mNumVertices field.
      • mWeight

        public AIAnimMesh.Buffer mWeight​(float value)
        Sets the specified value to the mWeight field.