awayjs-display
Version:
AwayJS displaylist classes
50 lines (43 loc) • 1.48 kB
text/typescript
import IAsset from "awayjs-core/lib/library/IAsset";
import AnimationNodeBase from "../animators/nodes/AnimationNodeBase";
/**
* Provides an interface for data set classes that hold animation data for use in animator classes.
*
* @see away.animators.AnimatorBase
*/
interface IAnimationSet extends IAsset
{
/**
* Check to determine whether a state is registered in the animation set under the given name.
*
* @param stateName The name of the animation state object to be checked.
*/
hasAnimation(name:string):boolean;
/**
* Retrieves the animation state object registered in the animation data set under the given name.
*
* @param stateName The name of the animation state object to be retrieved.
*/
getAnimation(name:string):AnimationNodeBase;
/**
* Indicates whether the properties of the animation data contained within the set combined with
* the vertex registers aslready in use on shading materials allows the animation data to utilise
* GPU calls.
*/
usesCPU:boolean; // GET
/**
* Called by the material to reset the GPU indicator before testing whether register space in the shader
* is available for running GPU-based animation code.
*
* @private
*/
resetGPUCompatibility();
/**
* Called by the animator to void the GPU indicator when register space in the shader
* is no longer available for running GPU-based animation code.
*
* @private
*/
cancelGPUCompatibility();
}
export default IAnimationSet;