webgl-gltf
Version:
GLTF 2.0 loader for WebGL
26 lines (25 loc) • 802 B
TypeScript
interface ActiveAnimation {
key: string;
elapsed: number;
}
/**
* Sets the active animation
* @param track Animation track
* @param key Animation set key
* @param model GLTF Model
* @param animation Animation key
*/
declare const pushAnimation: (track: string, key: string, model: string, animation: string) => void;
/**
* Gets the current and previous animation
* @param key Animation set key
* @param model GLTF Model
*/
declare const getActiveAnimations: (key: string, model: string) => {} | null;
/**
* Advances the animation
* @param elapsed Time elasped since last update
* @param key Animation set key
*/
declare const advanceAnimation: (elapsed: number, key?: string | undefined) => void;
export { pushAnimation, getActiveAnimations, advanceAnimation, ActiveAnimation, };