Class GltfScene.Channel

java.lang.Object
com.codename1.gpu.GltfScene.Channel
Enclosing class:
GltfScene

public static final class GltfScene.Channel extends Object
Keyframes for one property of one node.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The channel animates a node's rotation.
    static final int
    The channel animates a node's scale.
    static final int
    The channel animates a node's translation.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The animated node.
    int
    TRANSLATION, ROTATION or SCALE.
    float[]
    Keyframe times in seconds, ascending.
    float[]
    The keyframe values: 3 floats per key, 4 for a rotation.
    boolean
    True for STEP interpolation, false for LINEAR.
    void
    sample(float time, float[] dst)
    Samples the channel at time (clamped to the keys) into dst.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TRANSLATION

      public static final int TRANSLATION
      The channel animates a node's translation.
      See Also:
    • ROTATION

      public static final int ROTATION
      The channel animates a node's rotation.
      See Also:
    • SCALE

      public static final int SCALE
      The channel animates a node's scale.
      See Also:
  • Method Details

    • getNode

      public int getNode()
      The animated node.
    • getPath

      public int getPath()
      TRANSLATION, ROTATION or SCALE.
    • getTimes

      public float[] getTimes()
      Keyframe times in seconds, ascending.
    • getValues

      public float[] getValues()
      The keyframe values: 3 floats per key, 4 for a rotation.
    • isStep

      public boolean isStep()
      True for STEP interpolation, false for LINEAR.
    • sample

      public void sample(float time, float[] dst)
      Samples the channel at time (clamped to the keys) into dst.