forked from pissang/claygl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Skeleton.d.ts
41 lines (25 loc) · 893 Bytes
/
Skeleton.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
///<reference path="core/Base.d.ts" />
///<reference path="Joint.d.ts" />
///<reference path="animation/SkinningClip.d.ts" />
declare module qtek {
interface ISkeletonClipEntry {
clip: animation.SkinningClip;
maps: number[]
}
export class Skeleton extends core.Base {
name: string;
roots: Joint[];
joints: Joint[];
updateHierarchy(): void;
updateJointMatrices(): void;
updateMatricesSubArrays(): void;
update(): void;
getSubSkinMatrices(meshId: number, joints: number[]): Float32Array;
addClip(clip: animation.SkinningClip, mapRule?: Object): number;
removeClip(clip: animation.SkinningClip): void;
removeClipsAll(): void;
getClip(index: number): animation.SkinningClip;
getClipNumber(): number;
setPose(clipIndex: number): void;
}
}