Class AIMesh.Buffer

    • 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

        @Nullable
        public AIColor4D.Buffer mColors​(int index)
        Returns a AIColor4D view of the pointer at the specified index of the mColors 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.
      • mMaterialIndex

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

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

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

        @Nullable
        public PointerBuffer mAnimMeshes()
        Returns a PointerBuffer view of the data pointed to by the mAnimMeshes 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.
      • 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.
      • 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.
      • mMaterialIndex

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