Class AIScene.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<AIScene>, NativeResource, Pointer
Enclosing class:
AIScene

public static class AIScene.Buffer extends StructBuffer<AIScene,AIScene.Buffer> implements NativeResource
An array of AIScene structs.
  • Constructor Details

    • Buffer

      public Buffer(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 Details

    • mFlags

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

      public @Nullable 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.
    • mMeshes

      public @Nullable PointerBuffer mMeshes()
      Returns:
      a PointerBuffer view of the data pointed to by the mMeshes field.
    • mNumMaterials

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

      public @Nullable 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

      public @Nullable 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

      public @Nullable 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.
    • mLights

      public @Nullable PointerBuffer mLights()
      Returns:
      a PointerBuffer view of the data pointed to by the mLights field.
    • mNumCameras

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

      public @Nullable PointerBuffer mCameras()
      Returns:
      a PointerBuffer view of the data pointed to by the mCameras field.
    • mMetaData

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

      public AIString mName()
      Returns:
      a AIString view of the mName field.
    • mNumSkeletons

      public int mNumSkeletons()
      Returns:
      the value of the mNumSkeletons field.
    • mSkeletons

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

      public AIScene.Buffer mMeshes(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mMeshes field.
    • mMaterials

      public AIScene.Buffer mMaterials(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mMaterials field.
    • mAnimations

      public AIScene.Buffer mAnimations(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mAnimations field.
    • mTextures

      public AIScene.Buffer mTextures(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mTextures field.
    • mLights

      public AIScene.Buffer mLights(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mLights field.
    • mCameras

      public AIScene.Buffer mCameras(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mCameras field.
    • mMetaData

      public AIScene.Buffer mMetaData(@Nullable AIMetaData value)
      Sets the address of the specified AIMetaData to the mMetaData field.
    • mName

      public AIScene.Buffer mName(AIString value)
      Copies the specified AIString to the mName field.
    • mName

      public AIScene.Buffer mName(Consumer<AIString> consumer)
      Passes the mName field to the specified Consumer.
    • mSkeletons

      public AIScene.Buffer mSkeletons(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mSkeletons field.