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.
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
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.
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.
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.