Package com.google.android.filament
Class MorphTargetBuffer.Builder
- java.lang.Object
-
- com.google.android.filament.MorphTargetBuffer.Builder
-
- Enclosing class:
- MorphTargetBuffer
public static class MorphTargetBuffer.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MorphTargetBufferbuild(Engine engine)Creates and returns theMorphTargetBufferobject.MorphTargetBuffer.Buildercount(int count)Size of the morph targets in targets.MorphTargetBuffer.BuildervertexCount(int vertexCount)Size of the morph targets in vertex counts.
-
-
-
Method Detail
-
vertexCount
@NonNull public MorphTargetBuffer.Builder vertexCount(@IntRange(from=1L) int vertexCount)
Size of the morph targets in vertex counts.- Parameters:
vertexCount- Number of vertex counts the morph targets can hold.- Returns:
- this
Builderobject for chaining calls
-
count
@NonNull public MorphTargetBuffer.Builder count(@IntRange(from=1L) int count)
Size of the morph targets in targets.- Parameters:
count- Number of targets the morph targets can hold.- Returns:
- this
Builderobject for chaining calls
-
build
@NonNull public MorphTargetBuffer build(@NonNull Engine engine)
Creates and returns theMorphTargetBufferobject.- Parameters:
engine- reference to theEngineto associate thisMorphTargetBufferwith.- Returns:
- the newly created
MorphTargetBufferobject - Throws:
java.lang.IllegalStateException- if the MorphTargetBuffer could not be created- See Also:
#setMorphTargetBufferAt
-
-