1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreTextureUnitState.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>OgreTextureUnitState.h</h1><a href="OgreTextureUnitState_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://ogre.sourceforge.net/</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 __TextureUnitState_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define __TextureUnitState_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 <span class="preprocessor">#include "<a class="code" href="OgreCommon_8h.html">OgreCommon.h</a>"</span> |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreBlendMode_8h.html">OgreBlendMode.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreMatrix4_8h.html">OgreMatrix4.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreIteratorWrappers_8h.html">OgreIteratorWrappers.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span> |
---|
43 | 00034 <span class="preprocessor">#include "<a class="code" href="OgreTexture_8h.html">OgreTexture.h</a>"</span> |
---|
44 | 00035 |
---|
45 | 00036 <span class="keyword">namespace </span>Ogre { |
---|
46 | <a name="l00052"></a><a class="code" href="classOgre_1_1TextureUnitState.html">00052</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> TextureUnitState |
---|
47 | 00053 { |
---|
48 | <a name="l00054"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStaten0">00054</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOgre_1_1RenderSystem.html">RenderSystem</a>; |
---|
49 | 00055 <span class="keyword">public</span>: |
---|
50 | <a name="l00061"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew27">00061</a> <span class="keyword">enum</span> TextureEffectType |
---|
51 | 00062 { |
---|
52 | 00064 ET_ENVIRONMENT_MAP, |
---|
53 | 00066 ET_PROJECTIVE_TEXTURE, |
---|
54 | 00068 ET_UVSCROLL, |
---|
55 | 00070 ET_USCROLL, |
---|
56 | 00072 ET_VSCROLL, |
---|
57 | 00074 ET_ROTATE, |
---|
58 | 00076 ET_TRANSFORM |
---|
59 | 00077 |
---|
60 | 00078 }; |
---|
61 | 00079 |
---|
62 | <a name="l00085"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew28">00085</a> <span class="keyword">enum</span> EnvMapType |
---|
63 | 00086 { |
---|
64 | 00088 ENV_PLANAR, |
---|
65 | 00090 ENV_CURVED, |
---|
66 | 00092 ENV_REFLECTION, |
---|
67 | 00094 ENV_NORMAL |
---|
68 | 00095 }; |
---|
69 | 00096 |
---|
70 | <a name="l00102"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew29">00102</a> <span class="keyword">enum</span> TextureTransformType |
---|
71 | 00103 { |
---|
72 | 00104 TT_TRANSLATE_U, |
---|
73 | 00105 TT_TRANSLATE_V, |
---|
74 | 00106 TT_SCALE_U, |
---|
75 | 00107 TT_SCALE_V, |
---|
76 | 00108 TT_ROTATE |
---|
77 | 00109 }; |
---|
78 | 00110 |
---|
79 | <a name="l00116"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew30">00116</a> <span class="keyword">enum</span> TextureAddressingMode |
---|
80 | 00117 { |
---|
81 | 00119 TAM_WRAP, |
---|
82 | 00121 TAM_MIRROR, |
---|
83 | 00123 TAM_CLAMP, |
---|
84 | 00125 TAM_BORDER |
---|
85 | 00126 }; |
---|
86 | 00127 |
---|
87 | <a name="l00129"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1UVWAddressingMode.html">00129</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1TextureUnitState_1_1UVWAddressingMode.html">UVWAddressingMode</a> |
---|
88 | 00130 { |
---|
89 | <a name="l00131"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1UVWAddressingMode.html#Ogre_1_1TextureUnitState_1_1UVWAddressingModeo2">00131</a> TextureAddressingMode u, v, w; |
---|
90 | 00132 }; |
---|
91 | 00133 |
---|
92 | <a name="l00136"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew31">00136</a> <span class="keyword">enum</span> TextureCubeFace |
---|
93 | 00137 { |
---|
94 | 00138 CUBE_FRONT = 0, |
---|
95 | 00139 CUBE_BACK = 1, |
---|
96 | 00140 CUBE_LEFT = 2, |
---|
97 | 00141 CUBE_RIGHT = 3, |
---|
98 | 00142 CUBE_UP = 4, |
---|
99 | 00143 CUBE_DOWN = 5 |
---|
100 | 00144 }; |
---|
101 | 00145 |
---|
102 | <a name="l00148"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html">00148</a> <span class="keyword">struct </span><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html">TextureEffect</a> { |
---|
103 | <a name="l00149"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto0">00149</a> TextureEffectType type; |
---|
104 | <a name="l00150"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto1">00150</a> <span class="keywordtype">int</span> subtype; |
---|
105 | <a name="l00151"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto3">00151</a> <a class="code" href="namespaceOgre.html#a465">Real</a> arg1, arg2; |
---|
106 | <a name="l00152"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto4">00152</a> <a class="code" href="namespaceOgre.html#a648">WaveformType</a> waveType; |
---|
107 | <a name="l00153"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto5">00153</a> <a class="code" href="namespaceOgre.html#a465">Real</a> base; |
---|
108 | <a name="l00154"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto6">00154</a> <a class="code" href="namespaceOgre.html#a465">Real</a> frequency; |
---|
109 | <a name="l00155"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto7">00155</a> <a class="code" href="namespaceOgre.html#a465">Real</a> phase; |
---|
110 | <a name="l00156"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto8">00156</a> <a class="code" href="namespaceOgre.html#a465">Real</a> amplitude; |
---|
111 | <a name="l00157"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto9">00157</a> <a class="code" href="classOgre_1_1Controller.html">Controller<Real></a>* controller; |
---|
112 | <a name="l00158"></a><a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html#Ogre_1_1TextureUnitState_1_1TextureEffecto10">00158</a> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Frustum.html">Frustum</a>* frustum; |
---|
113 | 00159 }; |
---|
114 | 00160 |
---|
115 | <a name="l00163"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew0">00163</a> <span class="keyword">typedef</span> std::multimap<TextureEffectType, TextureEffect> EffectMap; |
---|
116 | 00164 |
---|
117 | 00167 TextureUnitState(<a class="code" href="classOgre_1_1Pass.html">Pass</a>* parent); |
---|
118 | 00168 |
---|
119 | 00169 TextureUnitState(<a class="code" href="classOgre_1_1Pass.html">Pass</a>* parent, <span class="keyword">const</span> TextureUnitState& oth ); |
---|
120 | 00170 |
---|
121 | 00171 TextureUnitState & operator = ( <span class="keyword">const</span> TextureUnitState& oth ); |
---|
122 | 00172 |
---|
123 | 00175 ~TextureUnitState(); |
---|
124 | 00176 |
---|
125 | 00183 TextureUnitState( <a class="code" href="classOgre_1_1Pass.html">Pass</a>* parent, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& texName, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> texCoordSet = 0); |
---|
126 | 00184 |
---|
127 | 00193 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& getTextureName(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
128 | 00194 |
---|
129 | 00200 <span class="keywordtype">void</span> setTextureName( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, TextureType ttype = TEX_TYPE_2D, <span class="keywordtype">int</span> mipmaps = -1, <span class="keywordtype">bool</span> isAlpha = <span class="keyword">false</span>); |
---|
130 | 00201 |
---|
131 | 00248 <span class="keywordtype">void</span> setCubicTextureName( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keywordtype">bool</span> forUVW = <span class="keyword">false</span> ); |
---|
132 | 00249 |
---|
133 | 00296 <span class="keywordtype">void</span> setCubicTextureName( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>* <span class="keyword">const</span> names, <span class="keywordtype">bool</span> forUVW = <span class="keyword">false</span> ); |
---|
134 | 00297 |
---|
135 | 00319 <span class="keywordtype">void</span> setAnimatedTextureName( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numFrames, <a class="code" href="namespaceOgre.html#a465">Real</a> duration = 0 ); |
---|
136 | 00320 |
---|
137 | 00342 <span class="keywordtype">void</span> setAnimatedTextureName( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>* <span class="keyword">const</span> names, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numFrames, <a class="code" href="namespaceOgre.html#a465">Real</a> duration = 0 ); |
---|
138 | 00343 |
---|
139 | 00346 std::pair< uint, uint > getTextureDimensions( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frame = 0 ) <span class="keyword">const</span>; |
---|
140 | 00347 |
---|
141 | 00355 <span class="keywordtype">void</span> setCurrentFrame( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frameNumber ); |
---|
142 | 00356 |
---|
143 | 00361 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getCurrentFrame(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
144 | 00362 |
---|
145 | 00368 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& getFrameTextureName(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frameNumber) <span class="keyword">const</span>; |
---|
146 | 00369 |
---|
147 | 00377 <span class="keywordtype">void</span> setFrameTextureName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frameNumber); |
---|
148 | 00378 |
---|
149 | 00384 <span class="keywordtype">void</span> addFrameTextureName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
150 | 00392 <span class="keywordtype">void</span> deleteFrameTextureName(<span class="keyword">const</span> size_t frameNumber); |
---|
151 | 00397 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNumFrames(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
152 | 00398 |
---|
153 | 00405 <span class="keywordtype">bool</span> isCubic(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
154 | 00406 |
---|
155 | 00411 <span class="keywordtype">bool</span> is3D(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
156 | 00412 |
---|
157 | 00417 <a class="code" href="namespaceOgre.html#a685">TextureType</a> getTextureType(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
158 | 00418 |
---|
159 | 00423 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getTextureCoordSet(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
160 | 00424 |
---|
161 | 00432 <span class="keywordtype">void</span> setTextureCoordSet(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> set); |
---|
162 | 00433 |
---|
163 | 00449 <span class="keywordtype">void</span> setTextureTransform(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>& xform); |
---|
164 | 00450 |
---|
165 | 00458 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>& getTextureTransform(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
166 | 00459 |
---|
167 | 00472 <span class="keywordtype">void</span> setTextureScroll(<a class="code" href="namespaceOgre.html#a465">Real</a> u, <a class="code" href="namespaceOgre.html#a465">Real</a> v); |
---|
168 | 00473 |
---|
169 | 00478 <span class="keywordtype">void</span> setTextureUScroll(<a class="code" href="namespaceOgre.html#a465">Real</a> value); |
---|
170 | 00479 <span class="comment">// get texture uscroll value</span> |
---|
171 | 00480 <a class="code" href="namespaceOgre.html#a465">Real</a> getTextureUScroll(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
172 | 00481 |
---|
173 | 00486 <span class="keywordtype">void</span> setTextureVScroll(<a class="code" href="namespaceOgre.html#a465">Real</a> value); |
---|
174 | 00487 <span class="comment">// get texture vscroll value</span> |
---|
175 | 00488 <a class="code" href="namespaceOgre.html#a465">Real</a> getTextureVScroll(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
176 | 00489 |
---|
177 | 00494 <span class="keywordtype">void</span> setTextureUScale(<a class="code" href="namespaceOgre.html#a465">Real</a> value); |
---|
178 | 00495 <span class="comment">// get texture uscale value</span> |
---|
179 | 00496 <a class="code" href="namespaceOgre.html#a465">Real</a> getTextureUScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
180 | 00497 |
---|
181 | 00502 <span class="keywordtype">void</span> setTextureVScale(<a class="code" href="namespaceOgre.html#a465">Real</a> value); |
---|
182 | 00503 <span class="comment">// get texture vscale value</span> |
---|
183 | 00504 <a class="code" href="namespaceOgre.html#a465">Real</a> getTextureVScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
184 | 00505 |
---|
185 | 00519 <span class="keywordtype">void</span> setTextureScale(<a class="code" href="namespaceOgre.html#a465">Real</a> uScale, <a class="code" href="namespaceOgre.html#a465">Real</a> vScale); |
---|
186 | 00520 |
---|
187 | 00530 <span class="keywordtype">void</span> setTextureRotate(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>& angle); |
---|
188 | 00531 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
189 | 00532 <span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> setTextureRotate(<a class="code" href="namespaceOgre.html#a465">Real</a> angle) { |
---|
190 | 00533 setTextureRotate ( <a class="code" href="classOgre_1_1Degree.html">Degree</a>(angle) ); |
---|
191 | 00534 } |
---|
192 | 00535 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
193 | 00536 <span class="preprocessor"></span> <span class="comment">// get texture rotation effects angle value</span> |
---|
194 | 00537 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>& getTextureRotate(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
195 | 00538 |
---|
196 | 00544 <span class="keyword">const</span> UVWAddressingMode& getTextureAddressingMode(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
197 | 00545 |
---|
198 | 00555 <span class="keywordtype">void</span> setTextureAddressingMode( TextureAddressingMode tam); |
---|
199 | 00556 |
---|
200 | 00563 <span class="keywordtype">void</span> setTextureAddressingMode( TextureAddressingMode u, |
---|
201 | 00564 TextureAddressingMode v, TextureAddressingMode w); |
---|
202 | 00565 |
---|
203 | 00572 <span class="keywordtype">void</span> setTextureAddressingMode( <span class="keyword">const</span> UVWAddressingMode& uvw); |
---|
204 | 00573 |
---|
205 | 00581 <span class="keywordtype">void</span> setTextureBorderColour(<span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& colour); |
---|
206 | 00582 |
---|
207 | 00588 <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& getTextureBorderColour(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
208 | 00589 |
---|
209 | 00654 <span class="keywordtype">void</span> setColourOperationEx( |
---|
210 | 00655 LayerBlendOperationEx op, |
---|
211 | 00656 LayerBlendSource source1 = LBS_TEXTURE, |
---|
212 | 00657 LayerBlendSource source2 = LBS_CURRENT, |
---|
213 | 00658 |
---|
214 | 00659 <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& arg1 = ColourValue::White, |
---|
215 | 00660 <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& arg2 = ColourValue::White, |
---|
216 | 00661 |
---|
217 | 00662 <a class="code" href="namespaceOgre.html#a465">Real</a> manualBlend = 0.0); |
---|
218 | 00663 |
---|
219 | 00682 <span class="keywordtype">void</span> setColourOperation( <span class="keyword">const</span> LayerBlendOperation op); |
---|
220 | 00683 |
---|
221 | 00703 <span class="keywordtype">void</span> setColourOpMultipassFallback( <span class="keyword">const</span> SceneBlendFactor sourceFactor, <span class="keyword">const</span> SceneBlendFactor destFactor); |
---|
222 | 00704 |
---|
223 | 00707 <span class="keyword">const</span> <a class="code" href="classOgre_1_1LayerBlendModeEx.html">LayerBlendModeEx</a>& getColourBlendMode(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
224 | 00708 |
---|
225 | 00711 <span class="keyword">const</span> <a class="code" href="classOgre_1_1LayerBlendModeEx.html">LayerBlendModeEx</a>& getAlphaBlendMode(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
226 | 00712 |
---|
227 | 00715 <a class="code" href="namespaceOgre.html#a639">SceneBlendFactor</a> getColourBlendFallbackSrc(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
228 | 00716 |
---|
229 | 00719 <a class="code" href="namespaceOgre.html#a639">SceneBlendFactor</a> getColourBlendFallbackDest(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
230 | 00720 |
---|
231 | 00746 <span class="keywordtype">void</span> setAlphaOperation(LayerBlendOperationEx op, |
---|
232 | 00747 LayerBlendSource source1 = LBS_TEXTURE, |
---|
233 | 00748 LayerBlendSource source2 = LBS_CURRENT, |
---|
234 | 00749 <a class="code" href="namespaceOgre.html#a465">Real</a> arg1 = 1.0, |
---|
235 | 00750 <a class="code" href="namespaceOgre.html#a465">Real</a> arg2 = 1.0, |
---|
236 | 00751 <a class="code" href="namespaceOgre.html#a465">Real</a> manualBlend = 0.0); |
---|
237 | 00752 |
---|
238 | 00764 <span class="keywordtype">void</span> addEffect(TextureEffect& effect); |
---|
239 | 00765 |
---|
240 | 00793 <span class="keywordtype">void</span> setEnvironmentMap(<span class="keywordtype">bool</span> enable, EnvMapType envMapType = ENV_CURVED); |
---|
241 | 00794 |
---|
242 | 00805 <span class="keywordtype">void</span> setScrollAnimation(<a class="code" href="namespaceOgre.html#a465">Real</a> uSpeed, <a class="code" href="namespaceOgre.html#a465">Real</a> vSpeed); |
---|
243 | 00806 |
---|
244 | 00815 <span class="keywordtype">void</span> setRotateAnimation(<a class="code" href="namespaceOgre.html#a465">Real</a> speed); |
---|
245 | 00816 |
---|
246 | 00836 <span class="keywordtype">void</span> setTransformAnimation( <span class="keyword">const</span> TextureTransformType ttype, |
---|
247 | 00837 <span class="keyword">const</span> WaveformType waveType, <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 ); |
---|
248 | 00838 |
---|
249 | 00839 |
---|
250 | 00858 <span class="keywordtype">void</span> setProjectiveTexturing(<span class="keywordtype">bool</span> enabled, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Frustum.html">Frustum</a>* projectionSettings = 0); |
---|
251 | 00859 |
---|
252 | 00862 <span class="keywordtype">void</span> removeAllEffects(<span class="keywordtype">void</span>); |
---|
253 | 00863 |
---|
254 | 00869 <span class="keywordtype">void</span> removeEffect( <span class="keyword">const</span> TextureEffectType type ); |
---|
255 | 00870 |
---|
256 | 00876 <span class="keywordtype">bool</span> isBlank(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
257 | 00877 |
---|
258 | 00880 <span class="keywordtype">void</span> setBlank(<span class="keywordtype">void</span>); |
---|
259 | 00881 |
---|
260 | 00882 <span class="comment">// get texture effects in a multimap paired array</span> |
---|
261 | 00883 <span class="keyword">const</span> EffectMap& getEffects(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
262 | 00884 <span class="comment">// get the animated-texture animation duration</span> |
---|
263 | 00885 <a class="code" href="namespaceOgre.html#a465">Real</a> getAnimationDuration(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
264 | 00886 |
---|
265 | 00896 <span class="keywordtype">void</span> setTextureFiltering(TextureFilterOptions filterType); |
---|
266 | 00901 <span class="keywordtype">void</span> setTextureFiltering(FilterType ftype, FilterOptions opts); |
---|
267 | 00910 <span class="keywordtype">void</span> setTextureFiltering(FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter); |
---|
268 | 00911 <span class="comment">// get the texture filtering for the given type</span> |
---|
269 | 00912 <a class="code" href="namespaceOgre.html#a643">FilterOptions</a> getTextureFiltering(FilterType ftpye) <span class="keyword">const</span>; |
---|
270 | 00913 |
---|
271 | 00919 <span class="keywordtype">void</span> setTextureAnisotropy(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> maxAniso); |
---|
272 | 00920 <span class="comment">// get this layer texture anisotropy level</span> |
---|
273 | 00921 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getTextureAnisotropy() <span class="keyword">const</span>; |
---|
274 | 00922 |
---|
275 | <a name="l00924"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatea70">00924</a> <a class="code" href="classOgre_1_1Pass.html">Pass</a>* getParent(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mParent; } |
---|
276 | 00925 |
---|
277 | 00927 <span class="keywordtype">void</span> _load(<span class="keywordtype">void</span>); |
---|
278 | 00929 <span class="keywordtype">void</span> _unload(<span class="keywordtype">void</span>); |
---|
279 | 00931 <span class="keywordtype">bool</span> hasViewRelativeTextureCoordinateGeneration(<span class="keywordtype">void</span>); |
---|
280 | 00932 |
---|
281 | 00933 <span class="comment">// Is this loaded?</span> |
---|
282 | 00934 <span class="keywordtype">bool</span> isLoaded(<span class="keywordtype">void</span>); |
---|
283 | 00936 <span class="keywordtype">void</span> _notifyNeedsRecompile(<span class="keywordtype">void</span>); |
---|
284 | 00937 |
---|
285 | 00943 <span class="keywordtype">void</span> setName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
286 | <a name="l00945"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatea77">00945</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& getName(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mName; } |
---|
287 | 00946 |
---|
288 | 00950 <span class="keywordtype">void</span> setTextureNameAlias(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
289 | <a name="l00953"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatea79">00953</a> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& getTextureNameAlias(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mTextureNameAlias;} |
---|
290 | 00954 |
---|
291 | 00969 <span class="keywordtype">bool</span> applyTextureAliases(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a77">AliasTextureNamePairList</a>& aliasList, <span class="keyword">const</span> <span class="keywordtype">bool</span> apply = <span class="keyword">true</span>); |
---|
292 | 00970 |
---|
293 | 00972 <span class="keywordtype">void</span> _notifyParent(<a class="code" href="classOgre_1_1Pass.html">Pass</a>* parent); |
---|
294 | 00973 |
---|
295 | 00974 <span class="keyword">protected</span>: |
---|
296 | 00975 <span class="comment">// State</span> |
---|
297 | <a name="l00977"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep0">00977</a> <span class="comment"></span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mCurrentFrame; |
---|
298 | 00978 |
---|
299 | <a name="l00980"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep1">00980</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mAnimDuration; |
---|
300 | <a name="l00981"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep2">00981</a> <span class="keywordtype">bool</span> mCubic; <span class="comment">// is this a series of 6 2D textures to make up a cube?</span> |
---|
301 | 00982 |
---|
302 | <a name="l00983"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep3">00983</a> <a class="code" href="namespaceOgre.html#a685">TextureType</a> mTextureType; |
---|
303 | <a name="l00984"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep4">00984</a> <span class="keywordtype">int</span> mTextureSrcMipmaps; <span class="comment">// Request number of mipmaps</span> |
---|
304 | 00985 |
---|
305 | <a name="l00986"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep5">00986</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mTextureCoordSetIndex; |
---|
306 | <a name="l00987"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep6">00987</a> <a class="code" href="structOgre_1_1TextureUnitState_1_1UVWAddressingMode.html">UVWAddressingMode</a> mAddressMode; |
---|
307 | <a name="l00988"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep7">00988</a> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> mBorderColour; |
---|
308 | 00989 |
---|
309 | <a name="l00990"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep8">00990</a> <a class="code" href="classOgre_1_1LayerBlendModeEx.html">LayerBlendModeEx</a> colourBlendMode; |
---|
310 | <a name="l00991"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep9">00991</a> <a class="code" href="namespaceOgre.html#a639">SceneBlendFactor</a> colourBlendFallbackSrc; |
---|
311 | <a name="l00992"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep10">00992</a> <a class="code" href="namespaceOgre.html#a639">SceneBlendFactor</a> colourBlendFallbackDest; |
---|
312 | 00993 |
---|
313 | <a name="l00994"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep11">00994</a> <a class="code" href="classOgre_1_1LayerBlendModeEx.html">LayerBlendModeEx</a> alphaBlendMode; |
---|
314 | <a name="l00995"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep12">00995</a> <span class="keywordtype">bool</span> mIsBlank; |
---|
315 | <a name="l00996"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep13">00996</a> <span class="keywordtype">bool</span> mIsAlpha; |
---|
316 | 00997 |
---|
317 | <a name="l00998"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep14">00998</a> <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mRecalcTexMatrix; |
---|
318 | <a name="l00999"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep16">00999</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mUMod, mVMod; |
---|
319 | <a name="l01000"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep18">01000</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mUScale, mVScale; |
---|
320 | <a name="l01001"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep19">01001</a> <a class="code" href="classOgre_1_1Radian.html">Radian</a> mRotate; |
---|
321 | <a name="l01002"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep20">01002</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> mTexModMatrix; |
---|
322 | 01003 |
---|
323 | 01004 <span class="comment">// Animation, will be set up as Controllers</span> |
---|
324 | <a name="l01005"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep22">01005</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mUScrollAnim, mVScrollAnim; |
---|
325 | <a name="l01006"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep23">01006</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mRotateAnim; |
---|
326 | 01007 |
---|
327 | <a name="l01009"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep24">01009</a> <a class="code" href="namespaceOgre.html#a643">FilterOptions</a> mMinFilter; |
---|
328 | <a name="l01011"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep25">01011</a> <a class="code" href="namespaceOgre.html#a643">FilterOptions</a> mMagFilter; |
---|
329 | <a name="l01013"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep26">01013</a> <a class="code" href="namespaceOgre.html#a643">FilterOptions</a> mMipFilter; |
---|
330 | <a name="l01015"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep27">01015</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mMaxAniso; |
---|
331 | 01016 |
---|
332 | <a name="l01017"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep28">01017</a> <span class="keywordtype">bool</span> mIsDefaultAniso; |
---|
333 | <a name="l01018"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep29">01018</a> <span class="keywordtype">bool</span> mIsDefaultFiltering; |
---|
334 | 01019 |
---|
335 | 01020 |
---|
336 | 01021 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
337 | 01022 <span class="comment">// Complex members (those that can't be copied using memcpy) are at the end to </span> |
---|
338 | 01023 <span class="comment">// allow for fast copying of the basic members.</span> |
---|
339 | 01024 <span class="comment">//</span> |
---|
340 | <a name="l01025"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep30">01025</a> std::vector<String> mFrames; |
---|
341 | <a name="l01026"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep31">01026</a> <a class="code" href="namespaceOgre.html#a471">String</a> mName; <span class="comment">// optional name for the TUS</span> |
---|
342 | <a name="l01027"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep32">01027</a> <a class="code" href="namespaceOgre.html#a471">String</a> mTextureNameAlias; <span class="comment">// optional alias for texture frames</span> |
---|
343 | <a name="l01028"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep33">01028</a> EffectMap mEffects; |
---|
344 | 01029 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
345 | 01030 |
---|
346 | 01031 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
347 | 01032 <span class="comment">// Pointer members (those that can't be copied using memcpy), and MUST</span> |
---|
348 | 01033 <span class="comment">// preserving even if assign from others</span> |
---|
349 | 01034 <span class="comment">//</span> |
---|
350 | <a name="l01035"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep34">01035</a> <a class="code" href="classOgre_1_1Pass.html">Pass</a>* mParent; |
---|
351 | <a name="l01036"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep35">01036</a> <a class="code" href="classOgre_1_1Controller.html">Controller<Real></a>* mAnimController; |
---|
352 | 01037 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
353 | 01038 |
---|
354 | 01039 |
---|
355 | 01042 <span class="keywordtype">void</span> recalcTextureMatrix(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
356 | 01043 |
---|
357 | 01046 <span class="keywordtype">void</span> createAnimController(<span class="keywordtype">void</span>); |
---|
358 | 01047 |
---|
359 | 01050 <span class="keywordtype">void</span> createEffectController(<a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html">TextureEffect</a>& effect); |
---|
360 | 01051 |
---|
361 | 01052 |
---|
362 | 01053 }; |
---|
363 | 01054 |
---|
364 | 01055 |
---|
365 | 01056 } |
---|
366 | 01057 |
---|
367 | 01058 <span class="preprocessor">#endif</span> |
---|
368 | </pre></div><hr> |
---|
369 | <p> |
---|
370 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
371 | <!--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/> |
---|
372 | 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/> |
---|
373 | <!--/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#"> |
---|
374 | <Work rdf:about=""> |
---|
375 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
376 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
377 | </Work> |
---|
378 | <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> --> |
---|
379 | |
---|
380 | Last modified Sun Mar 12 14:37:51 2006 |
---|
381 | </p> |
---|
382 | </body> |
---|
383 | </html> |
---|