Documentation

Classes

Class CL3D.AnimatorAnimateTexture

Scene node animator changing the texture of SceneNodes so that they appear animated.

Extends CL3D.Animator.

Class Overview
CL3D.AnimatorAnimateTexture(textures, timeperframe, donotloop)
Scene node animator changing the texture of SceneNodes so that they appear animated.
Parameters:
{Array} textures
array of Textures to set
{Number} timeperframe
time to switch to the next texture in the texture array, in milliseconds. For example 500 for half a second per frame.
{Boolean} donotloop
if set to true, the animation will only be played once

Method Summary
Method Attributes Method Name and Description
 
animateNode(n, timeMs)
Animates the scene node it is attached to and returns true if scene node was modified.
 
Returns the type of the animator.
Methods borrowed from class CL3D.Animator:
createClone, onKeyDown, onKeyUp, onMouseDown, onMouseMove, onMouseUp, onMouseWheel
Method Detail
animateNode(n, timeMs)
Animates the scene node it is attached to and returns true if scene node was modified.
Parameters:
{CL3D.SceneNode} n
The Scene node which needs to be animated this frame.
{Integer} timeMs
The time in milliseconds since the start of the scene.

getType()
Returns the type of the animator. For the AnimatorAnimateTexture, this will return 'animatetexture'.

© 2011-2018 N.Gebhardt, Ambiera
Documentation generated by JsDoc Toolkit