1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgrePredefinedControllers.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body> |
---|
8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
9 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
10 | <h1>OgrePredefinedControllers.h</h1><a href="OgrePredefinedControllers_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 <span class="preprocessor">#ifndef __PredefinedControllers_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define __PredefinedControllers_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span> |
---|
37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
38 | 00029 |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreCommon_8h.html">OgreCommon.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreController_8h.html">OgreController.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreFrameListener_8h.html">OgreFrameListener.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreGpuProgram_8h.html">OgreGpuProgram.h</a>"</span> |
---|
43 | 00034 |
---|
44 | 00035 <span class="keyword">namespace </span>Ogre { |
---|
45 | 00036 |
---|
46 | 00037 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
47 | 00038 <span class="comment">// Controller Values</span> |
---|
48 | 00039 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
49 | <a name="l00042"></a><a class="code" href="classOgre_1_1FrameTimeControllerValue.html">00042</a> <span class="comment"></span> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> FrameTimeControllerValue : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ControllerValue.html">ControllerValue</a><Real>, <span class="keyword">public</span> <a class="code" href="classOgre_1_1FrameListener.html">FrameListener</a> |
---|
50 | 00043 { |
---|
51 | 00044 <span class="keyword">protected</span>: |
---|
52 | <a name="l00045"></a><a class="code" href="classOgre_1_1FrameTimeControllerValue.html#Ogre_1_1FrameTimeControllerValuep0">00045</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mFrameTime; |
---|
53 | <a name="l00046"></a><a class="code" href="classOgre_1_1FrameTimeControllerValue.html#Ogre_1_1FrameTimeControllerValuep1">00046</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mTimeFactor; |
---|
54 | <a name="l00047"></a><a class="code" href="classOgre_1_1FrameTimeControllerValue.html#Ogre_1_1FrameTimeControllerValuep2">00047</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mElapsedTime; |
---|
55 | <a name="l00048"></a><a class="code" href="classOgre_1_1FrameTimeControllerValue.html#Ogre_1_1FrameTimeControllerValuep3">00048</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mFrameDelay; |
---|
56 | 00049 |
---|
57 | 00050 <span class="keyword">public</span>: |
---|
58 | 00051 FrameTimeControllerValue(); |
---|
59 | 00052 <span class="keywordtype">bool</span> frameEnded(<span class="keyword">const</span> <a class="code" href="structOgre_1_1FrameEvent.html">FrameEvent</a> &evt); |
---|
60 | 00053 <span class="keywordtype">bool</span> frameStarted(<span class="keyword">const</span> <a class="code" href="structOgre_1_1FrameEvent.html">FrameEvent</a> &evt); |
---|
61 | 00054 <a class="code" href="namespaceOgre.html#a465">Real</a> getValue(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
62 | 00055 <span class="keywordtype">void</span> setValue(<a class="code" href="namespaceOgre.html#a465">Real</a> value); |
---|
63 | 00056 <a class="code" href="namespaceOgre.html#a465">Real</a> getTimeFactor(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
64 | 00057 <span class="keywordtype">void</span> setTimeFactor(<a class="code" href="namespaceOgre.html#a465">Real</a> tf); |
---|
65 | 00058 <a class="code" href="namespaceOgre.html#a465">Real</a> getFrameDelay(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
66 | 00059 <span class="keywordtype">void</span> setFrameDelay(<a class="code" href="namespaceOgre.html#a465">Real</a> fd); |
---|
67 | 00060 <a class="code" href="namespaceOgre.html#a465">Real</a> getElapsedTime(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
68 | 00061 <span class="keywordtype">void</span> setElapsedTime(<a class="code" href="namespaceOgre.html#a465">Real</a> elapsedTime); |
---|
69 | 00062 }; |
---|
70 | 00063 |
---|
71 | 00064 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
72 | <a name="l00067"></a><a class="code" href="classOgre_1_1TextureFrameControllerValue.html">00067</a> <span class="comment"></span> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> TextureFrameControllerValue : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ControllerValue.html">ControllerValue</a><Real> |
---|
73 | 00068 { |
---|
74 | 00069 <span class="keyword">protected</span>: |
---|
75 | <a name="l00070"></a><a class="code" href="classOgre_1_1TextureFrameControllerValue.html#Ogre_1_1TextureFrameControllerValuep0">00070</a> <a class="code" href="classOgre_1_1TextureUnitState.html">TextureUnitState</a>* mTextureLayer; |
---|
76 | 00071 <span class="keyword">public</span>: |
---|
77 | 00072 TextureFrameControllerValue(<a class="code" href="classOgre_1_1TextureUnitState.html">TextureUnitState</a>* t); |
---|
78 | 00073 |
---|
79 | 00076 <a class="code" href="namespaceOgre.html#a465">Real</a> getValue(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
80 | 00079 <span class="keywordtype">void</span> setValue(<a class="code" href="namespaceOgre.html#a465">Real</a> value); |
---|
81 | 00080 |
---|
82 | 00081 }; |
---|
83 | 00082 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
84 | <a name="l00091"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html">00091</a> <span class="comment"></span> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> TexCoordModifierControllerValue : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ControllerValue.html">ControllerValue</a><Real> |
---|
85 | 00092 { |
---|
86 | 00093 <span class="keyword">protected</span>: |
---|
87 | <a name="l00094"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html#Ogre_1_1TexCoordModifierControllerValuep1">00094</a> <span class="keywordtype">bool</span> mTransU, mTransV; |
---|
88 | <a name="l00095"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html#Ogre_1_1TexCoordModifierControllerValuep3">00095</a> <span class="keywordtype">bool</span> mScaleU, mScaleV; |
---|
89 | <a name="l00096"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html#Ogre_1_1TexCoordModifierControllerValuep4">00096</a> <span class="keywordtype">bool</span> mRotate; |
---|
90 | <a name="l00097"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html#Ogre_1_1TexCoordModifierControllerValuep5">00097</a> <a class="code" href="classOgre_1_1TextureUnitState.html">TextureUnitState</a>* mTextureLayer; |
---|
91 | 00098 <span class="keyword">public</span>: |
---|
92 | 00113 TexCoordModifierControllerValue(<a class="code" href="classOgre_1_1TextureUnitState.html">TextureUnitState</a>* t, <span class="keywordtype">bool</span> translateU = <span class="keyword">false</span>, <span class="keywordtype">bool</span> translateV = <span class="keyword">false</span>, |
---|
93 | 00114 <span class="keywordtype">bool</span> scaleU = <span class="keyword">false</span>, <span class="keywordtype">bool</span> scaleV = <span class="keyword">false</span>, <span class="keywordtype">bool</span> rotate = <span class="keyword">false</span> ); |
---|
94 | 00115 |
---|
95 | 00116 <a class="code" href="namespaceOgre.html#a465">Real</a> getValue(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
96 | 00117 <span class="keywordtype">void</span> setValue(<a class="code" href="namespaceOgre.html#a465">Real</a> value); |
---|
97 | 00118 |
---|
98 | 00119 }; |
---|
99 | 00120 |
---|
100 | 00121 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
101 | <a name="l00134"></a><a class="code" href="classOgre_1_1FloatGpuParameterControllerValue.html">00134</a> <span class="comment"></span> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> FloatGpuParameterControllerValue : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ControllerValue.html">ControllerValue</a><Real> |
---|
102 | 00135 { |
---|
103 | 00136 <span class="keyword">protected</span>: |
---|
104 | <a name="l00138"></a><a class="code" href="classOgre_1_1FloatGpuParameterControllerValue.html#Ogre_1_1FloatGpuParameterControllerValuep0">00138</a> <a class="code" href="classOgre_1_1GpuProgramParameters.html">GpuProgramParameters</a>* mParams; |
---|
105 | <a name="l00140"></a><a class="code" href="classOgre_1_1FloatGpuParameterControllerValue.html#Ogre_1_1FloatGpuParameterControllerValuep1">00140</a> size_t mParamIndex; |
---|
106 | 00141 <span class="keyword">public</span>: |
---|
107 | 00148 FloatGpuParameterControllerValue(<a class="code" href="classOgre_1_1GpuProgramParameters.html">GpuProgramParameters</a>* params, |
---|
108 | 00149 size_t index ); |
---|
109 | 00150 |
---|
110 | <a name="l00151"></a><a class="code" href="classOgre_1_1FloatGpuParameterControllerValue.html#Ogre_1_1FloatGpuParameterControllerValuea1">00151</a> ~FloatGpuParameterControllerValue() {} |
---|
111 | 00152 |
---|
112 | 00153 <a class="code" href="namespaceOgre.html#a465">Real</a> getValue(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
113 | 00154 <span class="keywordtype">void</span> setValue(<a class="code" href="namespaceOgre.html#a465">Real</a> value); |
---|
114 | 00155 |
---|
115 | 00156 }; |
---|
116 | 00157 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
117 | 00158 <span class="comment">// Controller functions</span> |
---|
118 | 00159 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
119 | 00160 |
---|
120 | <a name="l00164"></a><a class="code" href="classOgre_1_1PassthroughControllerFunction.html">00164</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> PassthroughControllerFunction : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a><Real> |
---|
121 | 00165 { |
---|
122 | 00166 <span class="keyword">public</span>: |
---|
123 | 00173 PassthroughControllerFunction(<span class="keywordtype">bool</span> deltaInput = <span class="keyword">false</span>); |
---|
124 | 00174 |
---|
125 | 00177 <a class="code" href="namespaceOgre.html#a465">Real</a> calculate(<a class="code" href="namespaceOgre.html#a465">Real</a> source); |
---|
126 | 00178 }; |
---|
127 | 00179 |
---|
128 | <a name="l00182"></a><a class="code" href="classOgre_1_1AnimationControllerFunction.html">00182</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> AnimationControllerFunction : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a><Real> |
---|
129 | 00183 { |
---|
130 | 00184 <span class="keyword">protected</span>: |
---|
131 | <a name="l00185"></a><a class="code" href="classOgre_1_1AnimationControllerFunction.html#Ogre_1_1AnimationControllerFunctionp0">00185</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mSeqTime; |
---|
132 | <a name="l00186"></a><a class="code" href="classOgre_1_1AnimationControllerFunction.html#Ogre_1_1AnimationControllerFunctionp1">00186</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mTime; |
---|
133 | 00187 <span class="keyword">public</span>: |
---|
134 | 00194 AnimationControllerFunction(<a class="code" href="namespaceOgre.html#a465">Real</a> sequenceTime, <a class="code" href="namespaceOgre.html#a465">Real</a> timeOffset = 0.0f); |
---|
135 | 00195 |
---|
136 | 00198 <a class="code" href="namespaceOgre.html#a465">Real</a> calculate(<a class="code" href="namespaceOgre.html#a465">Real</a> source); |
---|
137 | 00199 }; |
---|
138 | 00200 |
---|
139 | 00201 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
140 | <a name="l00204"></a><a class="code" href="classOgre_1_1ScaleControllerFunction.html">00204</a> <span class="comment"></span> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> ScaleControllerFunction : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a><Real> |
---|
141 | 00205 { |
---|
142 | 00206 <span class="keyword">protected</span>: |
---|
143 | <a name="l00207"></a><a class="code" href="classOgre_1_1ScaleControllerFunction.html#Ogre_1_1ScaleControllerFunctionp0">00207</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mScale; |
---|
144 | 00208 <span class="keyword">public</span>: |
---|
145 | 00216 ScaleControllerFunction(<a class="code" href="namespaceOgre.html#a465">Real</a> scalefactor, <span class="keywordtype">bool</span> deltaInput); |
---|
146 | 00217 |
---|
147 | 00220 <a class="code" href="namespaceOgre.html#a465">Real</a> calculate(<a class="code" href="namespaceOgre.html#a465">Real</a> source); |
---|
148 | 00221 |
---|
149 | 00222 }; |
---|
150 | 00223 |
---|
151 | 00224 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
152 | <a name="l00244"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html">00244</a> <span class="comment"></span> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> WaveformControllerFunction : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ControllerFunction.html">ControllerFunction</a><Real> |
---|
153 | 00245 { |
---|
154 | 00246 <span class="keyword">protected</span>: |
---|
155 | <a name="l00247"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp0">00247</a> <a class="code" href="namespaceOgre.html#a648">WaveformType</a> mWaveType; |
---|
156 | <a name="l00248"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp1">00248</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mBase; |
---|
157 | <a name="l00249"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp2">00249</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mFrequency; |
---|
158 | <a name="l00250"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp3">00250</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mPhase; |
---|
159 | <a name="l00251"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp4">00251</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mAmplitude; |
---|
160 | <a name="l00252"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp5">00252</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mDutyCycle; |
---|
161 | 00253 |
---|
162 | 00255 <a class="code" href="namespaceOgre.html#a465">Real</a> getAdjustedInput(<a class="code" href="namespaceOgre.html#a465">Real</a> input); |
---|
163 | 00256 |
---|
164 | 00257 <span class="keyword">public</span>: |
---|
165 | 00265 WaveformControllerFunction(WaveformType wType, <a class="code" href="namespaceOgre.html#a465">Real</a> base = 0, <a class="code" href="namespaceOgre.html#a465">Real</a> frequency = 1, <a class="code" href="namespaceOgre.html#a465">Real</a> phase = 0, <a class="code" href="namespaceOgre.html#a465">Real</a> amplitude = 1, <span class="keywordtype">bool</span> deltaInput = <span class="keyword">true</span>, <a class="code" href="namespaceOgre.html#a465">Real</a> dutyCycle = 0.5); |
---|
166 | 00266 |
---|
167 | 00269 <a class="code" href="namespaceOgre.html#a465">Real</a> calculate(<a class="code" href="namespaceOgre.html#a465">Real</a> source); |
---|
168 | 00270 |
---|
169 | 00271 }; |
---|
170 | 00272 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
171 | 00273 |
---|
172 | 00274 } |
---|
173 | 00275 |
---|
174 | 00276 <span class="preprocessor">#endif</span> |
---|
175 | </pre></div><hr> |
---|
176 | <p> |
---|
177 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
178 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
179 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
180 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
181 | <Work rdf:about=""> |
---|
182 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
183 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
184 | </Work> |
---|
185 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
186 | |
---|
187 | Last modified Sun Mar 12 14:37:46 2006 |
---|
188 | </p> |
---|
189 | </body> |
---|
190 | </html> |
---|