Class MorphTargetBuffer


  • public class MorphTargetBuffer
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCount()  
      long getNativeObject()  
      int getVertexCount()  
      void setPositionsAt​(Engine engine, int targetIndex, float[] positions, int count)
      Updates positions of morph target at the index.
      void setTangentsAt​(Engine engine, int targetIndex, short[] tangents, int count)
      Updates tangents of morph target at the index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setPositionsAt

        public void setPositionsAt​(@NonNull
                                   Engine engine,
                                   @IntRange(from=0L)
                                   int targetIndex,
                                   @NonNull
                                   float[] positions,
                                   @IntRange(from=0L,to=125L)
                                   int count)
        Updates positions of morph target at the index.
        Parameters:
        engine - Engine instance
        targetIndex - The index of morph target to be updated
        positions - Pointer to at least count positions
        count - Number of position elements in positions
      • setTangentsAt

        public void setTangentsAt​(@NonNull
                                  Engine engine,
                                  @IntRange(from=0L)
                                  int targetIndex,
                                  @NonNull
                                  short[] tangents,
                                  @IntRange(from=0L,to=125L)
                                  int count)
        Updates tangents of morph target at the index.
        Parameters:
        engine - Engine instance
        targetIndex - The index of morph target to be updated
        tangents - Pointer to at least count tangents
        count - Number of tangent elements in tangents
      • getVertexCount

        public int getVertexCount()
        Returns:
        number of vertex count in this MorphTargetBuffer
      • getCount

        public int getCount()
        Returns:
        number of target count in this MorphTargetBuffer
      • getNativeObject

        public long getNativeObject()