Package com.google.android.filament
Class MorphTargetBuffer
- java.lang.Object
-
- com.google.android.filament.MorphTargetBuffer
-
public class MorphTargetBuffer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMorphTargetBuffer.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCount()longgetNativeObject()intgetVertexCount()voidsetPositionsAt(Engine engine, int targetIndex, float[] positions, int count)Updates positions of morph target at the index.voidsetTangentsAt(Engine engine, int targetIndex, short[] tangents, int count)Updates tangents of morph target at the index.
-
-
-
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-EngineinstancetargetIndex- The index of morph target to be updatedpositions- Pointer to at least count positionscount- 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-EngineinstancetargetIndex- The index of morph target to be updatedtangents- Pointer to at least count tangentscount- 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()
-
-