Class AIMesh.Buffer

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

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

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new AIMesh.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 AIMesh.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

      • mPrimitiveTypes

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

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

        public int mNumFaces()
        Returns the value of the mNumFaces field.
      • 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.
      • mNumUVComponents

        public java.nio.IntBuffer mNumUVComponents()
        Returns a IntBuffer view of the mNumUVComponents field.
      • mNumUVComponents

        public int mNumUVComponents​(int index)
        Returns the value at the specified index of the mNumUVComponents field.
      • mNumBones

        public int mNumBones()
        Returns the value of the mNumBones field.
      • mBones

        @Nullable
        public org.lwjgl.PointerBuffer mBones()
        Returns a PointerBuffer view of the data pointed to by the mBones field.
      • mMaterialIndex

        public int mMaterialIndex()
        Returns the value of the mMaterialIndex field.
      • mNumAnimMeshes

        public int mNumAnimMeshes()
        Returns the value of the mNumAnimMeshes field.
      • mAnimMeshes

        @Nullable
        public org.lwjgl.PointerBuffer mAnimMeshes()
        Returns a PointerBuffer view of the data pointed to by the mAnimMeshes field.
      • mMethod

        public int mMethod()
        Returns the value of the mMethod field.
      • mAABB

        public AIAABB mAABB()
        Returns a AIAABB view of the mAABB field.
      • mPrimitiveTypes

        public AIMesh.Buffer mPrimitiveTypes​(int value)
        Sets the specified value to the mPrimitiveTypes field.
      • mNumVertices

        public AIMesh.Buffer mNumVertices​(int value)
        Sets the specified value to the mNumVertices field.
      • mColors

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

        public AIMesh.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 AIMesh.Buffer mTextureCoords​(org.lwjgl.PointerBuffer value)
        Copies the specified PointerBuffer to the mTextureCoords field.
      • mTextureCoords

        public AIMesh.Buffer mTextureCoords​(int index,
                                            @Nullable
                                            AIVector3D.Buffer value)
        Copies the address of the specified AIVector3D at the specified index of the mTextureCoords field.
      • mTextureCoords

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

        public AIMesh.Buffer mNumUVComponents​(java.nio.IntBuffer value)
        Copies the specified IntBuffer to the mNumUVComponents field.
      • mNumUVComponents

        public AIMesh.Buffer mNumUVComponents​(int index,
                                              int value)
        Sets the specified value at the specified index of the mNumUVComponents field.
      • mBones

        public AIMesh.Buffer mBones​(@Nullable
                                    org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the mBones field.
      • mMaterialIndex

        public AIMesh.Buffer mMaterialIndex​(int value)
        Sets the specified value to the mMaterialIndex field.
      • mName

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

        public AIMesh.Buffer mAnimMeshes​(@Nullable
                                         org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the mAnimMeshes field.
      • mMethod

        public AIMesh.Buffer mMethod​(int value)
        Sets the specified value to the mMethod field.
      • mAABB

        public AIMesh.Buffer mAABB​(java.util.function.Consumer<AIAABB> consumer)
        Passes the mAABB field to the specified Consumer.