Class MorphTargetBuffer.Builder

  • Enclosing class:
    MorphTargetBuffer

    public static class MorphTargetBuffer.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • 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 Builder object 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 Builder object for chaining calls
      • build

        @NonNull
        public MorphTargetBuffer build​(@NonNull
                                       Engine engine)
        Creates and returns the MorphTargetBuffer object.
        Parameters:
        engine - reference to the Engine to associate this MorphTargetBuffer with.
        Returns:
        the newly created MorphTargetBuffer object
        Throws:
        java.lang.IllegalStateException - if the MorphTargetBuffer could not be created
        See Also:
        #setMorphTargetBufferAt