Castle Game Engine: CastlePrecalculatedAnimationCore: Class TCastlePrecalculatedAnimationCore

# Class TCastlePrecalculatedAnimationCore
Description | Hierarchy | Fields | Methods | Properties
## Unit CastlePrecalculatedAnimationCore ## Declaration `type TCastlePrecalculatedAnimationCore = class(T3D)` ## Description An abstract (cannot be rendered) precalculated animation. You usually want to use a descendant of this class that can be rendered in OpenGL, see TCastlePrecalculatedAnimation. ## Hierarchy TComponent T3D TCastlePrecalculatedAnimationCore ## Overview ### Fields
| `internal const DefaultScenesPerTime = 30;`
| `internal const DefaultEqualityEpsilon = 0.001;`
### Methods
| `class procedure LoadFromFileToVars(const URL: string; ModelURLs: TStringList; Times: TSingleList; out ScenesPerTime: Cardinal; out EqualityEpsilon: Single; out ATimeLoop, ATimeBackwards: boolean);`
| `class procedure LoadFromDOMElementToVars(Element: TDOMElement; const BaseUrl: string; ModelURLs: TStringList; Times: TSingleList; out ScenesPerTime: Cardinal; out EqualityEpsilon: Single; out ATimeLoop, ATimeBackwards: boolean);`
## Description ### Fields
| `internal const DefaultScenesPerTime = 30;`
| `internal const DefaultEqualityEpsilon = 0.001;`
### Methods
| `class procedure LoadFromFileToVars(const URL: string; ModelURLs: TStringList; Times: TSingleList; out ScenesPerTime: Cardinal; out EqualityEpsilon: Single; out ATimeLoop, ATimeBackwards: boolean);`
Load animation data from a given URL to a set of variables. See [http://castle-engine.sourceforge.net/kanim_format.php] for specification of the file format. This is a class procedure — it doesn't load the animation data to the given TCastlePrecalculatedAnimationCore instance. Instead it loads the data to your variables (passed as "out" params). In case of RootNodes and Times, you should pass here references to already created and currently empty lists. ModelURLs returned will always contain only absolute paths. We will expand every path (like URL parameter) if necessary for this. If you seek for most comfortable way to load TCastlePrecalculatedAnimation from a file, you probably want to use TCastlePrecalculatedAnimation.LoadFromFile. This procedure is more flexible — it allows you to e.g. modify parameters before creating TCastlePrecalculatedAnimation instance, and it's usefull to implement a class like TCastlePrecalculatedAnimationInfo that also wants to read animation data, but doesn't have an TCastlePrecalculatedAnimation instance available.
| `class procedure LoadFromDOMElementToVars(Element: TDOMElement; const BaseUrl: string; ModelURLs: TStringList; Times: TSingleList; out ScenesPerTime: Cardinal; out EqualityEpsilon: Single; out ATimeLoop, ATimeBackwards: boolean);`
Load animation data from a given XML element to a set of variables. This is just like LoadFromFileToVars, but it works using an Element. This way you can use it to load <animation> element that is a part of some larger XML file. ###### Parameters BaseUrl The URL from which relative URLs inside Element will be resolved. It doesn't have to be absolute, we will expand it to make it absolute if necessary.
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:11