Class AIScene

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class AIScene extends Struct<AIScene> implements NativeResource

 struct aiScene {
     unsigned int mFlags;
     {@link AINode struct aiNode} * mRootNode;
     unsigned int mNumMeshes;
     {@link AIMesh struct aiMesh} ** mMeshes;
     unsigned int mNumMaterials;
     {@link AIMaterial struct aiMaterial} ** mMaterials;
     unsigned int mNumAnimations;
     {@link AIAnimation struct aiAnimation} ** mAnimations;
     unsigned int mNumTextures;
     {@link AITexture struct aiTexture} ** mTextures;
     unsigned int mNumLights;
     {@link AILight struct aiLight} ** mLights;
     unsigned int mNumCameras;
     {@link AICamera struct aiCamera} ** mCameras;
     {@link AIMetaData struct aiMetadata} * mMetaData;
     {@link AIString struct aiString} mName;
     unsigned int mNumSkeletons;
     {@link AISkeleton struct aiSkeleton} ** mSkeletons;
     char * mPrivate;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MFLAGS

      public static final int MFLAGS
      The struct member offsets.
    • MROOTNODE

      public static final int MROOTNODE
      The struct member offsets.
    • MNUMMESHES

      public static final int MNUMMESHES
      The struct member offsets.
    • MMESHES

      public static final int MMESHES
      The struct member offsets.
    • MNUMMATERIALS

      public static final int MNUMMATERIALS
      The struct member offsets.
    • MMATERIALS

      public static final int MMATERIALS
      The struct member offsets.
    • MNUMANIMATIONS

      public static final int MNUMANIMATIONS
      The struct member offsets.
    • MANIMATIONS

      public static final int MANIMATIONS
      The struct member offsets.
    • MNUMTEXTURES

      public static final int MNUMTEXTURES
      The struct member offsets.
    • MTEXTURES

      public static final int MTEXTURES
      The struct member offsets.
    • MNUMLIGHTS

      public static final int MNUMLIGHTS
      The struct member offsets.
    • MLIGHTS

      public static final int MLIGHTS
      The struct member offsets.
    • MNUMCAMERAS

      public static final int MNUMCAMERAS
      The struct member offsets.
    • MCAMERAS

      public static final int MCAMERAS
      The struct member offsets.
    • MMETADATA

      public static final int MMETADATA
      The struct member offsets.
    • MNAME

      public static final int MNAME
      The struct member offsets.
    • MNUMSKELETONS

      public static final int MNUMSKELETONS
      The struct member offsets.
    • MSKELETONS

      public static final int MSKELETONS
      The struct member offsets.
    • MPRIVATE

      public static final int MPRIVATE
      The struct member offsets.
  • Constructor Details

    • AIScene

      public AIScene(ByteBuffer container)
      Creates a AIScene instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<AIScene>
    • 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 mFlags(int value)
      Sets the specified value to the mFlags field.
    • mRootNode

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

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

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

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

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

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

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

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

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

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

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

      public AIScene set(int mFlags, @Nullable AINode mRootNode, @Nullable PointerBuffer mMeshes, @Nullable PointerBuffer mMaterials, @Nullable PointerBuffer mAnimations, @Nullable PointerBuffer mTextures, @Nullable PointerBuffer mLights, @Nullable PointerBuffer mCameras, @Nullable AIMetaData mMetaData, AIString mName, @Nullable PointerBuffer mSkeletons)
      Initializes this struct with the specified values.
    • set

      public AIScene set(AIScene src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static AIScene malloc()
      Returns a new AIScene instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static AIScene calloc()
      Returns a new AIScene instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static AIScene create()
      Returns a new AIScene instance allocated with BufferUtils.
    • create

      public static AIScene create(long address)
      Returns a new AIScene instance for the specified memory address.
    • createSafe

      public static @Nullable AIScene createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static AIScene.Buffer malloc(int capacity)
      Returns a new AIScene.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static AIScene.Buffer calloc(int capacity)
      Returns a new AIScene.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static AIScene.Buffer create(int capacity)
      Returns a new AIScene.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static AIScene.Buffer create(long address, int capacity)
      Create a AIScene.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable AIScene.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static AIScene mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static AIScene callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static AIScene mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static AIScene callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static AIScene.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static AIScene.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static AIScene.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static AIScene.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

      public static AIScene malloc(MemoryStack stack)
      Returns a new AIScene instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static AIScene calloc(MemoryStack stack)
      Returns a new AIScene instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static AIScene.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new AIScene.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static AIScene.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new AIScene.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nmFlags

      public static int nmFlags(long struct)
      Unsafe version of mFlags().
    • nmRootNode

      public static @Nullable AINode nmRootNode(long struct)
      Unsafe version of mRootNode().
    • nmNumMeshes

      public static int nmNumMeshes(long struct)
      Unsafe version of mNumMeshes().
    • nmMeshes

      public static @Nullable PointerBuffer nmMeshes(long struct)
      Unsafe version of mMeshes.
    • nmNumMaterials

      public static int nmNumMaterials(long struct)
      Unsafe version of mNumMaterials().
    • nmMaterials

      public static @Nullable PointerBuffer nmMaterials(long struct)
      Unsafe version of mMaterials.
    • nmNumAnimations

      public static int nmNumAnimations(long struct)
      Unsafe version of mNumAnimations().
    • nmAnimations

      public static @Nullable PointerBuffer nmAnimations(long struct)
      Unsafe version of mAnimations.
    • nmNumTextures

      public static int nmNumTextures(long struct)
      Unsafe version of mNumTextures().
    • nmTextures

      public static @Nullable PointerBuffer nmTextures(long struct)
      Unsafe version of mTextures.
    • nmNumLights

      public static int nmNumLights(long struct)
      Unsafe version of mNumLights().
    • nmLights

      public static @Nullable PointerBuffer nmLights(long struct)
      Unsafe version of mLights.
    • nmNumCameras

      public static int nmNumCameras(long struct)
      Unsafe version of mNumCameras().
    • nmCameras

      public static @Nullable PointerBuffer nmCameras(long struct)
      Unsafe version of mCameras.
    • nmMetaData

      public static @Nullable AIMetaData nmMetaData(long struct)
      Unsafe version of mMetaData().
    • nmName

      public static AIString nmName(long struct)
      Unsafe version of mName().
    • nmNumSkeletons

      public static int nmNumSkeletons(long struct)
      Unsafe version of mNumSkeletons().
    • nmSkeletons

      public static @Nullable PointerBuffer nmSkeletons(long struct)
      Unsafe version of mSkeletons.
    • nmPrivate

      public static ByteBuffer nmPrivate(long struct, int capacity)
    • nmFlags

      public static void nmFlags(long struct, int value)
      Unsafe version of mFlags.
    • nmRootNode

      public static void nmRootNode(long struct, @Nullable AINode value)
      Unsafe version of mRootNode.
    • nmNumMeshes

      public static void nmNumMeshes(long struct, int value)
      Sets the specified value to the mNumMeshes field of the specified struct.
    • nmMeshes

      public static void nmMeshes(long struct, @Nullable PointerBuffer value)
      Unsafe version of mMeshes.
    • nmNumMaterials

      public static void nmNumMaterials(long struct, int value)
      Sets the specified value to the mNumMaterials field of the specified struct.
    • nmMaterials

      public static void nmMaterials(long struct, @Nullable PointerBuffer value)
      Unsafe version of mMaterials.
    • nmNumAnimations

      public static void nmNumAnimations(long struct, int value)
      Sets the specified value to the mNumAnimations field of the specified struct.
    • nmAnimations

      public static void nmAnimations(long struct, @Nullable PointerBuffer value)
      Unsafe version of mAnimations.
    • nmNumTextures

      public static void nmNumTextures(long struct, int value)
      Sets the specified value to the mNumTextures field of the specified struct.
    • nmTextures

      public static void nmTextures(long struct, @Nullable PointerBuffer value)
      Unsafe version of mTextures.
    • nmNumLights

      public static void nmNumLights(long struct, int value)
      Sets the specified value to the mNumLights field of the specified struct.
    • nmLights

      public static void nmLights(long struct, @Nullable PointerBuffer value)
      Unsafe version of mLights.
    • nmNumCameras

      public static void nmNumCameras(long struct, int value)
      Sets the specified value to the mNumCameras field of the specified struct.
    • nmCameras

      public static void nmCameras(long struct, @Nullable PointerBuffer value)
      Unsafe version of mCameras.
    • nmMetaData

      public static void nmMetaData(long struct, @Nullable AIMetaData value)
      Unsafe version of mMetaData.
    • nmName

      public static void nmName(long struct, AIString value)
      Unsafe version of mName.
    • nmNumSkeletons

      public static void nmNumSkeletons(long struct, int value)
      Sets the specified value to the mNumSkeletons field of the specified struct.
    • nmSkeletons

      public static void nmSkeletons(long struct, @Nullable PointerBuffer value)
      Unsafe version of mSkeletons.
    • nmPrivate

      public static void nmPrivate(long struct, ByteBuffer value)
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate