~ubuntu-branches/ubuntu/utopic/castle-game-engine/utopic

« back to all changes in this revision

Viewing changes to doc/pasdoc/html/CastlePrecalculatedAnimationCore.TCastlePrecalculatedAnimationCore.html

  • Committer: Package Import Robot
  • Author(s): Abou Al Montacir
  • Date: 2013-04-27 18:06:40 UTC
  • Revision ID: package-import@ubuntu.com-20130427180640-eink4nmwzuivez1c
Tags: upstream-4.0.1
ImportĀ upstreamĀ versionĀ 4.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
 
2
<html>
 
3
<head>
 
4
<title>Castle Game Engine: CastlePrecalculatedAnimationCore: Class TCastlePrecalculatedAnimationCore</title>
 
5
<meta name="generator" content="PasDoc 0.12.1">
 
6
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
 
7
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
 
8
</head>
 
9
<body>
 
10
<table class="container"><tr><td class="navigation">
 
11
<h2>Castle Game Engine</h2><p><a href="introduction.html" class="navigation">Introduction</a></p><p><a href="AllUnits.html" class="navigation">Units</a></p><p><a href="ClassHierarchy.html" class="navigation">Class Hierarchy</a></p><p><a href="AllClasses.html" class="navigation">Classes, Interfaces, Objects and Records</a></p><p><a href="AllTypes.html" class="navigation">Types</a></p><p><a href="AllVariables.html" class="navigation">Variables</a></p><p><a href="AllConstants.html" class="navigation">Constants</a></p><p><a href="AllFunctions.html" class="navigation">Functions and Procedures</a></p><p><a href="AllIdentifiers.html" class="navigation">Identifiers</a></p></td><td class="content">
 
12
<a name="TCastlePrecalculatedAnimationCore"></a><h1 class="cio">Class TCastlePrecalculatedAnimationCore</h1>
 
13
<table class="sections wide_list">
 
14
<tr>
 
15
<td><a class="section" href="#PasDoc-Description">Description</a></td><td><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section" href="#PasDoc-Methods">Methods</a></td><td>Properties</td></tr></table>
 
16
<a name="PasDoc-Description"></a><h2 class="unit">Unit</h2>
 
17
<p class="unitlink">
 
18
<a  href="CastlePrecalculatedAnimationCore.html">CastlePrecalculatedAnimationCore</a></p>
 
19
<h2 class="declaration">Declaration</h2>
 
20
<p class="declaration">
 
21
<code>type TCastlePrecalculatedAnimationCore = class(<a class="normal" href="Castle3D.T3D.html">T3D</a>)</code></p>
 
22
<h2 class="description">Description</h2>
 
23
<p>
 
24
An abstract (cannot be rendered) precalculated animation. You usually want to use a descendant of this class that can be rendered in OpenGL, see <a class="normal" href="CastlePrecalculatedAnimation.TCastlePrecalculatedAnimation.html">TCastlePrecalculatedAnimation</a>.</p>
 
25
<a name="PasDoc-Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
 
26
<ul class="hierarchy"><li class="ancestor">TComponent</li>
 
27
<li class="ancestor"><a class="normal" href="Castle3D.T3D.html">T3D</a></li>
 
28
<li class="thisitem">TCastlePrecalculatedAnimationCore</li></ul><h2 class="overview">Overview</h2>
 
29
<a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
 
30
<table class="summary wide_list">
 
31
<tr class="list">
 
32
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
33
<td class="itemcode"><code>class procedure <b><a  href="CastlePrecalculatedAnimationCore.TCastlePrecalculatedAnimationCore.html#LoadFromFileToVars">LoadFromFileToVars</a></b>(const FileName: string; ModelFileNames: TStringList; Times: <a  href="CastleUtils.TSingleList.html">TSingleList</a>; out ScenesPerTime: Cardinal; out EqualityEpsilon: Single; out ATimeLoop, ATimeBackwards: boolean);</code></td>
 
34
</tr>
 
35
<tr class="list2">
 
36
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
37
<td class="itemcode"><code>class procedure <b><a  href="CastlePrecalculatedAnimationCore.TCastlePrecalculatedAnimationCore.html#LoadFromDOMElementToVars">LoadFromDOMElementToVars</a></b>(Element: TDOMElement; const BasePath: string; ModelFileNames: TStringList; Times: <a  href="CastleUtils.TSingleList.html">TSingleList</a>; out ScenesPerTime: Cardinal; out EqualityEpsilon: Single; out ATimeLoop, ATimeBackwards: boolean);</code></td>
 
38
</tr>
 
39
</table>
 
40
<h2 class="description">Description</h2>
 
41
<h3 class="detail">Methods</h3>
 
42
<table class="detail wide_list">
 
43
<tr class="list">
 
44
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
45
<td class="itemcode"><a name="LoadFromFileToVars"></a><code>class procedure <b>LoadFromFileToVars</b>(const FileName: string; ModelFileNames: TStringList; Times: <a  href="CastleUtils.TSingleList.html">TSingleList</a>; out ScenesPerTime: Cardinal; out EqualityEpsilon: Single; out ATimeLoop, ATimeBackwards: boolean);</code></td>
 
46
</tr>
 
47
<tr><td colspan="2">
 
48
<p>
 
49
Load animation data from a given FileName to a set of variables.
 
50
 
 
51
<p>See [<a  href="http://castle-engine.sourceforge.net/kanim_format.php">http://castle-engine.sourceforge.net/kanim_format.php</a>] for specification of the file format.
 
52
 
 
53
<p>This is a <i>class procedure</i> &mdash; it doesn't load the animation data to the given <a class="normal" href="CastlePrecalculatedAnimationCore.TCastlePrecalculatedAnimationCore.html">TCastlePrecalculatedAnimationCore</a> instance. Instead it loads the data to your variables (passed as &quot;out&quot; params). In case of RootNodes and Times, you should pass here references to <i>already created and currently empty</i> lists.
 
54
 
 
55
<p>ModelFileNames returned will always contain only absolute paths. We will expand every path (like FileName parameter) if necessary for this.
 
56
 
 
57
<p>If you seek for most comfortable way to load <a class="normal" href="CastlePrecalculatedAnimation.TCastlePrecalculatedAnimation.html">TCastlePrecalculatedAnimation</a> from a file, you probably want to use <a class="normal" href="CastlePrecalculatedAnimation.TCastlePrecalculatedAnimation.html#LoadFromFile">TCastlePrecalculatedAnimation.LoadFromFile</a>. This procedure is more flexible &mdash; it allows you to e.g. modify parameters before creating <a class="normal" href="CastlePrecalculatedAnimation.TCastlePrecalculatedAnimation.html">TCastlePrecalculatedAnimation</a> instance, and it's usefull to implement a class like TCastlePrecalculatedAnimationInfo that also wants to read animation data, but doesn't have an <a class="normal" href="CastlePrecalculatedAnimation.TCastlePrecalculatedAnimation.html">TCastlePrecalculatedAnimation</a> instance available.</p>
 
58
</td></tr>
 
59
</table>
 
60
<table class="detail wide_list">
 
61
<tr class="list">
 
62
<td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
 
63
<td class="itemcode"><a name="LoadFromDOMElementToVars"></a><code>class procedure <b>LoadFromDOMElementToVars</b>(Element: TDOMElement; const BasePath: string; ModelFileNames: TStringList; Times: <a  href="CastleUtils.TSingleList.html">TSingleList</a>; out ScenesPerTime: Cardinal; out EqualityEpsilon: Single; out ATimeLoop, ATimeBackwards: boolean);</code></td>
 
64
</tr>
 
65
<tr><td colspan="2">
 
66
<p>
 
67
Load animation data from a given XML element to a set of variables.
 
68
 
 
69
<p>This is just like <a class="normal" href="CastlePrecalculatedAnimationCore.TCastlePrecalculatedAnimationCore.html#LoadFromFileToVars">LoadFromFileToVars</a>, but it works using an Element. This way you can use it to load &lt;animation&gt; element that is a part of some larger XML file.
 
70
 
 
71
<p></p>
 
72
<h6 class="description_section">Parameters</h6>
 
73
<dl class="parameters">
 
74
<dt>BasePath</dt>
 
75
<dd>The path from which relative filenames inside Element will be resolved. It doesn't have to be an absolute path, we will expand it to make it absolute if necessary.</dd>
 
76
</dl>
 
77
</td></tr>
 
78
</table>
 
79
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  href="http://pasdoc.sourceforge.net/">PasDoc 0.12.1</a> on 2013-02-04 20:26:51</em>
 
80
</span>
 
81
</td></tr></table></body></html>