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#a420">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#a420">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#a420">Real</a> mElapsedTime; |
---|
55 | 00048 |
---|
56 | 00049 <span class="keyword">public</span>: |
---|
57 | 00050 FrameTimeControllerValue(); |
---|
58 | 00051 <span class="keywordtype">bool</span> frameEnded(<span class="keyword">const</span> <a class="code" href="structOgre_1_1FrameEvent.html">FrameEvent</a> &evt); |
---|
59 | 00052 <span class="keywordtype">bool</span> frameStarted(<span class="keyword">const</span> <a class="code" href="structOgre_1_1FrameEvent.html">FrameEvent</a> &evt); |
---|
60 | 00053 <a class="code" href="namespaceOgre.html#a420">Real</a> getValue(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
61 | 00054 <span class="keywordtype">void</span> setValue(<a class="code" href="namespaceOgre.html#a420">Real</a> value); |
---|
62 | 00055 <a class="code" href="namespaceOgre.html#a420">Real</a> getTimeFactor(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
63 | 00056 <span class="keywordtype">void</span> setTimeFactor(<a class="code" href="namespaceOgre.html#a420">Real</a> tf); |
---|
64 | 00057 <a class="code" href="namespaceOgre.html#a420">Real</a> getElapsedTime(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
65 | 00058 <span class="keywordtype">void</span> setElapsedTime(<a class="code" href="namespaceOgre.html#a420">Real</a> elapsedTime); |
---|
66 | 00059 }; |
---|
67 | 00060 |
---|
68 | 00061 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
69 | <a name="l00064"></a><a class="code" href="classOgre_1_1TextureFrameControllerValue.html">00064</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> |
---|
70 | 00065 { |
---|
71 | 00066 <span class="keyword">protected</span>: |
---|
72 | <a name="l00067"></a><a class="code" href="classOgre_1_1TextureFrameControllerValue.html#Ogre_1_1TextureFrameControllerValuep0">00067</a> <a class="code" href="classOgre_1_1TextureUnitState.html">TextureUnitState</a>* mTextureLayer; |
---|
73 | 00068 <span class="keyword">public</span>: |
---|
74 | 00069 TextureFrameControllerValue(<a class="code" href="classOgre_1_1TextureUnitState.html">TextureUnitState</a>* t); |
---|
75 | 00070 |
---|
76 | 00073 <a class="code" href="namespaceOgre.html#a420">Real</a> getValue(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
77 | 00076 <span class="keywordtype">void</span> setValue(<a class="code" href="namespaceOgre.html#a420">Real</a> value); |
---|
78 | 00077 |
---|
79 | 00078 }; |
---|
80 | 00079 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
81 | <a name="l00088"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html">00088</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> |
---|
82 | 00089 { |
---|
83 | 00090 <span class="keyword">protected</span>: |
---|
84 | <a name="l00091"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html#Ogre_1_1TexCoordModifierControllerValuep1">00091</a> <span class="keywordtype">bool</span> mTransU, mTransV; |
---|
85 | <a name="l00092"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html#Ogre_1_1TexCoordModifierControllerValuep3">00092</a> <span class="keywordtype">bool</span> mScaleU, mScaleV; |
---|
86 | <a name="l00093"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html#Ogre_1_1TexCoordModifierControllerValuep4">00093</a> <span class="keywordtype">bool</span> mRotate; |
---|
87 | <a name="l00094"></a><a class="code" href="classOgre_1_1TexCoordModifierControllerValue.html#Ogre_1_1TexCoordModifierControllerValuep5">00094</a> <a class="code" href="classOgre_1_1TextureUnitState.html">TextureUnitState</a>* mTextureLayer; |
---|
88 | 00095 <span class="keyword">public</span>: |
---|
89 | 00110 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>, |
---|
90 | 00111 <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> ); |
---|
91 | 00112 |
---|
92 | 00113 <a class="code" href="namespaceOgre.html#a420">Real</a> getValue(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
93 | 00114 <span class="keywordtype">void</span> setValue(<a class="code" href="namespaceOgre.html#a420">Real</a> value); |
---|
94 | 00115 |
---|
95 | 00116 }; |
---|
96 | 00117 |
---|
97 | 00118 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
98 | <a name="l00131"></a><a class="code" href="classOgre_1_1FloatGpuParameterControllerValue.html">00131</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> |
---|
99 | 00132 { |
---|
100 | 00133 <span class="keyword">protected</span>: |
---|
101 | <a name="l00135"></a><a class="code" href="classOgre_1_1FloatGpuParameterControllerValue.html#Ogre_1_1FloatGpuParameterControllerValuep0">00135</a> <a class="code" href="classOgre_1_1GpuProgramParameters.html">GpuProgramParameters</a>* mParams; |
---|
102 | <a name="l00137"></a><a class="code" href="classOgre_1_1FloatGpuParameterControllerValue.html#Ogre_1_1FloatGpuParameterControllerValuep1">00137</a> size_t mParamIndex; |
---|
103 | 00138 <span class="keyword">public</span>: |
---|
104 | 00145 FloatGpuParameterControllerValue(<a class="code" href="classOgre_1_1GpuProgramParameters.html">GpuProgramParameters</a>* <a class="code" href="OgreGLPrerequisites_8h.html#a74">params</a>, |
---|
105 | 00146 size_t index ); |
---|
106 | 00147 |
---|
107 | <a name="l00148"></a><a class="code" href="classOgre_1_1FloatGpuParameterControllerValue.html#Ogre_1_1FloatGpuParameterControllerValuea1">00148</a> ~FloatGpuParameterControllerValue() {} |
---|
108 | 00149 |
---|
109 | 00150 <a class="code" href="namespaceOgre.html#a420">Real</a> getValue(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
110 | 00151 <span class="keywordtype">void</span> setValue(<a class="code" href="namespaceOgre.html#a420">Real</a> value); |
---|
111 | 00152 |
---|
112 | 00153 }; |
---|
113 | 00154 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
114 | 00155 <span class="comment">// Controller functions</span> |
---|
115 | 00156 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
116 | 00157 |
---|
117 | <a name="l00160"></a><a class="code" href="classOgre_1_1AnimationControllerFunction.html">00160</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> |
---|
118 | 00161 { |
---|
119 | 00162 <span class="keyword">protected</span>: |
---|
120 | <a name="l00163"></a><a class="code" href="classOgre_1_1AnimationControllerFunction.html#Ogre_1_1AnimationControllerFunctionp0">00163</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mSeqTime; |
---|
121 | <a name="l00164"></a><a class="code" href="classOgre_1_1AnimationControllerFunction.html#Ogre_1_1AnimationControllerFunctionp1">00164</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mTime; |
---|
122 | 00165 <span class="keyword">public</span>: |
---|
123 | 00172 AnimationControllerFunction(<a class="code" href="namespaceOgre.html#a420">Real</a> sequenceTime, <a class="code" href="namespaceOgre.html#a420">Real</a> timeOffset = 0.0f); |
---|
124 | 00173 |
---|
125 | 00176 <a class="code" href="namespaceOgre.html#a420">Real</a> calculate(<a class="code" href="namespaceOgre.html#a420">Real</a> source); |
---|
126 | 00177 }; |
---|
127 | 00178 |
---|
128 | 00179 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
129 | <a name="l00182"></a><a class="code" href="classOgre_1_1ScaleControllerFunction.html">00182</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> |
---|
130 | 00183 { |
---|
131 | 00184 <span class="keyword">protected</span>: |
---|
132 | <a name="l00185"></a><a class="code" href="classOgre_1_1ScaleControllerFunction.html#Ogre_1_1ScaleControllerFunctionp0">00185</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mScale; |
---|
133 | 00186 <span class="keyword">public</span>: |
---|
134 | 00194 ScaleControllerFunction(<a class="code" href="namespaceOgre.html#a420">Real</a> scalefactor, <span class="keywordtype">bool</span> deltaInput); |
---|
135 | 00195 |
---|
136 | 00198 <a class="code" href="namespaceOgre.html#a420">Real</a> calculate(<a class="code" href="namespaceOgre.html#a420">Real</a> source); |
---|
137 | 00199 |
---|
138 | 00200 }; |
---|
139 | 00201 |
---|
140 | 00202 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
141 | <a name="l00221"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html">00221</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> |
---|
142 | 00222 { |
---|
143 | 00223 <span class="keyword">protected</span>: |
---|
144 | <a name="l00224"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp0">00224</a> <a class="code" href="namespaceOgre.html#a645">WaveformType</a> mWaveType; |
---|
145 | <a name="l00225"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp1">00225</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mBase; |
---|
146 | <a name="l00226"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp2">00226</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mFrequency; |
---|
147 | <a name="l00227"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp3">00227</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mPhase; |
---|
148 | <a name="l00228"></a><a class="code" href="classOgre_1_1WaveformControllerFunction.html#Ogre_1_1WaveformControllerFunctionp4">00228</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mAmplitude; |
---|
149 | 00229 |
---|
150 | 00231 <a class="code" href="namespaceOgre.html#a420">Real</a> getAdjustedInput(<a class="code" href="namespaceOgre.html#a420">Real</a> input); |
---|
151 | 00232 |
---|
152 | 00233 <span class="keyword">public</span>: |
---|
153 | 00239 WaveformControllerFunction(WaveformType wType, <a class="code" href="namespaceOgre.html#a420">Real</a> base = 0, <a class="code" href="namespaceOgre.html#a420">Real</a> frequency = 1, <a class="code" href="namespaceOgre.html#a420">Real</a> phase = 0, <a class="code" href="namespaceOgre.html#a420">Real</a> amplitude = 1, <span class="keywordtype">bool</span> deltaInput = <span class="keyword">true</span>); |
---|
154 | 00240 |
---|
155 | 00243 <a class="code" href="namespaceOgre.html#a420">Real</a> calculate(<a class="code" href="namespaceOgre.html#a420">Real</a> source); |
---|
156 | 00244 |
---|
157 | 00245 }; |
---|
158 | 00246 <span class="comment">//-----------------------------------------------------------------------</span> |
---|
159 | 00247 |
---|
160 | 00248 } |
---|
161 | 00249 |
---|
162 | 00250 <span class="preprocessor">#endif</span> |
---|
163 | </pre></div><hr> |
---|
164 | <p> |
---|
165 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
166 | <!--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/> |
---|
167 | 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/> |
---|
168 | <!--/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#"> |
---|
169 | <Work rdf:about=""> |
---|
170 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
171 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
172 | </Work> |
---|
173 | <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> --> |
---|
174 | |
---|
175 | Last modified Sun Feb 12 12:59:50 2006 |
---|
176 | </p> |
---|
177 | </body> |
---|
178 | </html> |
---|