C# Class GUI.Types.Renderer.Animation.Animation

显示文件 Open project: SteamDatabase/ValveResourceFormat Class Usage Examples

Public Methods

Method Description
Animation ( Resource resource, ValveResourceFormat.ResourceTypes.NTROSerialization.NTROStruct decodeKey, Skeleton skeleton ) : System
GetAnimationMatrices ( float time, Skeleton skeleton ) : Matrix4[]
GetAnimationMatricesAsArray ( float time, Skeleton skeleton ) : float[]
ToString ( ) : string

Private Methods

Method Description
ConstructFromDesc ( NTROStruct animDesc, NTROStruct decodeKey, AnimDecoderType decoderArray, NTROArray segmentArray ) : void
Flatten ( Matrix4 matrices ) : float[]
GetAnimationMatrixRecursive ( Bone bone, Matrix4 parentBindPose, Matrix4 parentInvBindPose, Frame transforms, Matrix4 &matrices ) : void
GetTransformsAtTime ( float time ) : Frame
MakeDecoderArray ( NTROArray decoderArray ) : AnimDecoderType[]
ReadHalfFloat ( BinaryReader reader ) : float
ReadQuaternion ( BinaryReader reader ) : Quaternion
ReadSegment ( int frame, NTROStruct segment, NTROStruct decodeKey, AnimDecoderType decoderArray, Frame &outFrame ) : void

Method Details

Animation() public method

public Animation ( Resource resource, ValveResourceFormat.ResourceTypes.NTROSerialization.NTROStruct decodeKey, Skeleton skeleton ) : System
resource ValveResourceFormat.Resource
decodeKey ValveResourceFormat.ResourceTypes.NTROSerialization.NTROStruct
skeleton Skeleton
return System

GetAnimationMatrices() public method

public GetAnimationMatrices ( float time, Skeleton skeleton ) : Matrix4[]
time float
skeleton Skeleton
return Matrix4[]

GetAnimationMatricesAsArray() public method

public GetAnimationMatricesAsArray ( float time, Skeleton skeleton ) : float[]
time float
skeleton Skeleton
return float[]

ToString() public method

public ToString ( ) : string
return string