Class AIScene.Buffer

    • Constructor Detail

      • Buffer

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

      • mFlags

        public int mFlags()
        Returns the value of the mFlags field.
      • mRootNode

        @Nullable
        public AINode mRootNode()
        Returns a AINode view of the struct pointed to by the mRootNode field.
      • mNumMeshes

        public int mNumMeshes()
        Returns the value of the mNumMeshes field.
      • mNumMaterials

        public int mNumMaterials()
        Returns the value of the mNumMaterials field.
      • mMaterials

        @Nullable
        public PointerBuffer mMaterials()
        Returns a PointerBuffer view of the data pointed to by the mMaterials field.
      • mNumAnimations

        public int mNumAnimations()
        Returns the value of the mNumAnimations field.
      • mAnimations

        @Nullable
        public PointerBuffer mAnimations()
        Returns a PointerBuffer view of the data pointed to by the mAnimations field.
      • mNumTextures

        public int mNumTextures()
        Returns the value of the mNumTextures field.
      • mTextures

        @Nullable
        public PointerBuffer mTextures()
        Returns a PointerBuffer view of the data pointed to by the mTextures field.
      • mNumLights

        public int mNumLights()
        Returns the value of the mNumLights field.
      • mNumCameras

        public int mNumCameras()
        Returns the value of the mNumCameras field.
      • mMetaData

        @Nullable
        public AIMetaData mMetaData()
        Returns a AIMetaData view of the struct pointed to by the mMetaData field.
      • mFlags

        public AIScene.Buffer mFlags​(int value)
        Sets the specified value to the mFlags field.
      • mRootNode

        public AIScene.Buffer mRootNode​(@Nullable
                                        AINode value)
        Sets the address of the specified AINode to the mRootNode field.