Class GltfScene.Channel
java.lang.Object
com.codename1.gpu.GltfScene.Channel
- Enclosing class:
GltfScene
Keyframes for one property of one node.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe channel animates a node's rotation.static final intThe channel animates a node's scale.static final intThe channel animates a node's translation. -
Method Summary
Modifier and TypeMethodDescriptionintgetNode()The animated node.intgetPath()TRANSLATION,ROTATIONorSCALE.float[]getTimes()Keyframe times in seconds, ascending.float[]The keyframe values: 3 floats per key, 4 for a rotation.booleanisStep()True forSTEPinterpolation, false forLINEAR.voidsample(float time, float[] dst) Samples the channel attime(clamped to the keys) intodst.
-
Field Details
-
TRANSLATION
public static final int TRANSLATIONThe channel animates a node's translation.- See Also:
-
ROTATION
public static final int ROTATIONThe channel animates a node's rotation.- See Also:
-
SCALE
public static final int SCALEThe channel animates a node's scale.- See Also:
-
-
Method Details
-
getNode
public int getNode()The animated node. -
getPath
public int getPath()TRANSLATION,ROTATIONorSCALE. -
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 forSTEPinterpolation, false forLINEAR. -
sample
public void sample(float time, float[] dst) Samples the channel attime(clamped to the keys) intodst.
-