Class AIAnimation

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MNAME, MDURATION, MTICKSPERSECOND, MNUMCHANNELS, MCHANNELS, MNUMMESHCHANNELS, MMESHCHANNELS, MNUMMORPHMESHCHANNELS, MMORPHMESHCHANNELS

        The struct member offsets.
    • Constructor Detail

      • AIAnimation

        public AIAnimation​(java.nio.ByteBuffer container)
        Creates a AIAnimation 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • mName

        public AIString mName()
        The name of the animation. If the modeling package this data was exported from does support only a single animation channel, this name is usually empty (length is zero).
      • mDuration

        public double mDuration()
        Duration of the animation in ticks.
      • mTicksPerSecond

        public double mTicksPerSecond()
        Ticks per second. 0 if not specified in the imported file
      • mNumChannels

        public int mNumChannels()
        The number of bone animation channels. Each channel affects a single node.
      • mChannels

        @Nullable
        public org.lwjgl.PointerBuffer mChannels()
        The node animation channels. Each channel affects a single node. The array is mNumChannels in size.
      • mNumMeshChannels

        public int mNumMeshChannels()
        The number of mesh animation channels. Each channel affects a single mesh and defines vertex-based animation.
      • mMeshChannels

        @Nullable
        public org.lwjgl.PointerBuffer mMeshChannels()
        The mesh animation channels. Each channel affects a single mesh. The array is mNumMeshChannels in size.
      • mNumMorphMeshChannels

        public int mNumMorphMeshChannels()
        the number of mesh animation channels. Each channel affects a single mesh and defines morphing animation.
      • mMorphMeshChannels

        @Nullable
        public org.lwjgl.PointerBuffer mMorphMeshChannels()
        the morph mesh animation channels. Each channel affects a single mesh. The array is mNumMorphMeshChannels in size.
      • mName

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

        public AIAnimation mDuration​(double value)
        Sets the specified value to the mDuration() field.
      • mChannels

        public AIAnimation mChannels​(@Nullable
                                     org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the mChannels() field.
      • mMeshChannels

        public AIAnimation mMeshChannels​(@Nullable
                                         org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the mMeshChannels() field.
      • mMorphMeshChannels

        public AIAnimation mMorphMeshChannels​(@Nullable
                                              org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the mMorphMeshChannels() field.
      • set

        public AIAnimation set​(AIString mName,
                               double mDuration,
                               double mTicksPerSecond,
                               @Nullable
                               org.lwjgl.PointerBuffer mChannels,
                               @Nullable
                               org.lwjgl.PointerBuffer mMeshChannels,
                               @Nullable
                               org.lwjgl.PointerBuffer mMorphMeshChannels)
        Initializes this struct with the specified values.
      • set

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

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

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

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

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

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

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

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

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

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

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

        @Deprecated
        public static AIAnimation mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static AIAnimation callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • mallocStack

        @Deprecated
        public static AIAnimation.Buffer mallocStack​(int capacity,
                                                     org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
      • callocStack

        @Deprecated
        public static AIAnimation.Buffer callocStack​(int capacity,
                                                     org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
      • malloc

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

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

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

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

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

        public static double nmDuration​(long struct)
        Unsafe version of mDuration().
      • nmTicksPerSecond

        public static double nmTicksPerSecond​(long struct)
        Unsafe version of mTicksPerSecond().
      • nmNumChannels

        public static int nmNumChannels​(long struct)
        Unsafe version of mNumChannels().
      • nmChannels

        @Nullable
        public static org.lwjgl.PointerBuffer nmChannels​(long struct)
        Unsafe version of mChannels.
      • nmNumMeshChannels

        public static int nmNumMeshChannels​(long struct)
        Unsafe version of mNumMeshChannels().
      • nmMeshChannels

        @Nullable
        public static org.lwjgl.PointerBuffer nmMeshChannels​(long struct)
        Unsafe version of mMeshChannels.
      • nmNumMorphMeshChannels

        public static int nmNumMorphMeshChannels​(long struct)
        Unsafe version of mNumMorphMeshChannels().
      • nmMorphMeshChannels

        @Nullable
        public static org.lwjgl.PointerBuffer nmMorphMeshChannels​(long struct)
        Unsafe version of mMorphMeshChannels.
      • nmName

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

        public static void nmDuration​(long struct,
                                      double value)
        Unsafe version of mDuration.
      • nmTicksPerSecond

        public static void nmTicksPerSecond​(long struct,
                                            double value)
        Unsafe version of mTicksPerSecond.
      • nmNumChannels

        public static void nmNumChannels​(long struct,
                                         int value)
        Sets the specified value to the mNumChannels field of the specified struct.
      • nmChannels

        public static void nmChannels​(long struct,
                                      @Nullable
                                      org.lwjgl.PointerBuffer value)
        Unsafe version of mChannels.
      • nmNumMeshChannels

        public static void nmNumMeshChannels​(long struct,
                                             int value)
        Sets the specified value to the mNumMeshChannels field of the specified struct.
      • nmMeshChannels

        public static void nmMeshChannels​(long struct,
                                          @Nullable
                                          org.lwjgl.PointerBuffer value)
        Unsafe version of mMeshChannels.
      • nmNumMorphMeshChannels

        public static void nmNumMorphMeshChannels​(long struct,
                                                  int value)
        Sets the specified value to the mNumMorphMeshChannels field of the specified struct.
      • nmMorphMeshChannels

        public static void nmMorphMeshChannels​(long struct,
                                               @Nullable
                                               org.lwjgl.PointerBuffer value)
        Unsafe version of mMorphMeshChannels.
      • validate

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