CAST II Game Engine

   MAIN       FEATURES       SCREENSHOTS       FORUMS       MANUAL       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TAnimationResource

Unit

C2Anim

Declaration

type TAnimationResource = class(TArrayResource)

Description

Base class for animation resources

Hierarchy

TArrayResource > TResource > TItem > TBaseItem

Fields

 NameDescription
PublicAnimTransformCurrent transform for each bone
PublicTimeStampsMsAnimation frame time stamps in milliseconds
PublicTotalMsTotal animation time in milliseconds
PublicTransformsFrame transforms for each bone and each timestamp

Methods

Overview

Publicprocedure AddBoneAnim(ABoneIndex: Integer; ATimeStampsMs: array of Cardinal; AAnims: array of TAnimTransform);
Publicprocedure AddProperties(const Result: Props.TProperties); override;
Publicprocedure DoRotate(Amount: TVector3s);
Publicprocedure DoScale(Amount: TVector3s);
Publicfunction GetElementSize: Integer; override;
Publicprocedure SetProperties(Properties: Props.TProperties); override;
Publicprocedure SetTime(TimeStamp: TTimeUnit);
Publicprocedure SetTotalBones(ATotalBones: Integer);

Description

Publicprocedure AddBoneAnim(ABoneIndex: Integer; ATimeStampsMs: array of Cardinal; AAnims: array of TAnimTransform);

Adds to a bone with the given index an animation described by array of time stamps and corresponding bone transformations

Publicprocedure AddProperties(const Result: Props.TProperties); override;

 

Publicprocedure DoRotate(Amount: TVector3s);

Rotates the animation by the given amount

Publicprocedure DoScale(Amount: TVector3s);

Scales the animation by the given amount

Publicfunction GetElementSize: Integer; override;

 

Publicprocedure SetProperties(Properties: Props.TProperties); override;

 

Publicprocedure SetTime(TimeStamp: TTimeUnit);

Sets animation time and recalculates current transforms

Publicprocedure SetTotalBones(ATotalBones: Integer);

Sets total bones

Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com