source: OGRE/trunk/ogrenew/Docs/api/html/OgreTextureUnitState_8h-source.html @ 692

Revision 692, 36.7 KB checked in by mattausch, 18 years ago (diff)

adding ogre 1.2 and dependencies

Line 
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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;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>
1100002 <span class="comment">-----------------------------------------------------------------------------</span>
1200003 <span class="comment">This source file is part of OGRE</span>
1300004 <span class="comment">(Object-oriented Graphics Rendering Engine)</span>
1400005 <span class="comment">For the latest info, see http://ogre.sourceforge.net/</span>
1500006 <span class="comment"></span>
1600007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span>
1700008 <span class="comment">Also see acknowledgements in Readme.html</span>
1800009 <span class="comment"></span>
1900010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span>
2000011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span>
2100012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span>
2200013 <span class="comment">version.</span>
2300014 <span class="comment"></span>
2400015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span>
2500016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
2600017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span>
2700018 <span class="comment"></span>
2800019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span>
2900020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span>
3000021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span>
3100022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span>
3200023 <span class="comment">-----------------------------------------------------------------------------</span>
3300024 <span class="comment">*/</span>
3400025 <span class="preprocessor">#ifndef __TextureUnitState_H__</span>
3500026 <span class="preprocessor"></span><span class="preprocessor">#define __TextureUnitState_H__</span>
3600027 <span class="preprocessor"></span>
3700028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span>
3800029 <span class="preprocessor">#include "<a class="code" href="OgreCommon_8h.html">OgreCommon.h</a>"</span>
3900030 <span class="preprocessor">#include "<a class="code" href="OgreBlendMode_8h.html">OgreBlendMode.h</a>"</span>
4000031 <span class="preprocessor">#include "<a class="code" href="OgreMatrix4_8h.html">OgreMatrix4.h</a>"</span>
4100032 <span class="preprocessor">#include "<a class="code" href="OgreIteratorWrappers_8h.html">OgreIteratorWrappers.h</a>"</span>
4200033 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span>
4300034 <span class="preprocessor">#include "<a class="code" href="OgreTexture_8h.html">OgreTexture.h</a>"</span>
4400035
4500036 <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
4700053     {
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>;
4900055     <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
5100062         {
5200064             ET_ENVIRONMENT_MAP,
5300066             ET_PROJECTIVE_TEXTURE,
5400068             ET_UVSCROLL,
5500070             ET_USCROLL,
5600072             ET_VSCROLL,
5700074             ET_ROTATE,
5800076             ET_TRANSFORM
5900077
6000078         };
6100079
62<a name="l00085"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew28">00085</a>         <span class="keyword">enum</span> EnvMapType
6300086         {
6400088             ENV_PLANAR,
6500090             ENV_CURVED,
6600092             ENV_REFLECTION,
6700094             ENV_NORMAL
6800095         };
6900096
70<a name="l00102"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew29">00102</a>         <span class="keyword">enum</span> TextureTransformType
7100103         {
7200104             TT_TRANSLATE_U,
7300105             TT_TRANSLATE_V,
7400106             TT_SCALE_U,
7500107             TT_SCALE_V,
7600108             TT_ROTATE
7700109         };
7800110
79<a name="l00116"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew30">00116</a>         <span class="keyword">enum</span> TextureAddressingMode
8000117         {
8100119             TAM_WRAP,
8200121             TAM_MIRROR,
8300123             TAM_CLAMP,
8400125             TAM_BORDER
8500126         };
8600127
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>
8800130         {
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;
9000132         };
9100133
92<a name="l00136"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatew31">00136</a>         <span class="keyword">enum</span> TextureCubeFace
9300137         {
9400138             CUBE_FRONT = 0,
9500139             CUBE_BACK = 1,
9600140             CUBE_LEFT = 2,
9700141             CUBE_RIGHT = 3,
9800142             CUBE_UP = 4,
9900143             CUBE_DOWN = 5
10000144         };
10100145
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&lt;Real&gt;</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;
11300159         };
11400160
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&lt;TextureEffectType, TextureEffect&gt; EffectMap;
11600164
11700167         TextureUnitState(<a class="code" href="classOgre_1_1Pass.html">Pass</a>* parent);
11800168
11900169         TextureUnitState(<a class="code" href="classOgre_1_1Pass.html">Pass</a>* parent, <span class="keyword">const</span> TextureUnitState&amp; oth );
12000170
12100171         TextureUnitState &amp; operator = ( <span class="keyword">const</span> TextureUnitState&amp; oth );
12200172
12300175         ~TextureUnitState();
12400176
12500183         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>&amp; texName, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> texCoordSet = 0);
12600184
12700193         <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; getTextureName(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
12800194
12900200         <span class="keywordtype">void</span> setTextureName( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name, TextureType ttype = TEX_TYPE_2D, <span class="keywordtype">int</span> mipmaps = -1, <span class="keywordtype">bool</span> isAlpha = <span class="keyword">false</span>);
13000201
13100248         <span class="keywordtype">void</span> setCubicTextureName( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name, <span class="keywordtype">bool</span> forUVW = <span class="keyword">false</span> );
13200249
13300296         <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> );
13400297
13500319         <span class="keywordtype">void</span> setAnimatedTextureName( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numFrames, <a class="code" href="namespaceOgre.html#a465">Real</a> duration = 0 );
13600320
13700342         <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 );
13800343
13900346         std::pair&lt; uint, uint &gt; getTextureDimensions( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frame = 0 ) <span class="keyword">const</span>;
14000347
14100355         <span class="keywordtype">void</span> setCurrentFrame( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frameNumber );
14200356
14300361         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getCurrentFrame(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
14400362
14500368         <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; getFrameTextureName(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frameNumber) <span class="keyword">const</span>;
14600369
14700377         <span class="keywordtype">void</span> setFrameTextureName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> frameNumber);
14800378
14900384         <span class="keywordtype">void</span> addFrameTextureName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name);
15000392         <span class="keywordtype">void</span> deleteFrameTextureName(<span class="keyword">const</span> size_t frameNumber);
15100397         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNumFrames(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
15200398
15300405         <span class="keywordtype">bool</span> isCubic(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
15400406
15500411         <span class="keywordtype">bool</span> is3D(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
15600412
15700417         <a class="code" href="namespaceOgre.html#a685">TextureType</a> getTextureType(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
15800418
15900423         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getTextureCoordSet(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16000424
16100432         <span class="keywordtype">void</span> setTextureCoordSet(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> set);
16200433
16300449         <span class="keywordtype">void</span> setTextureTransform(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>&amp; xform);
16400450
16500458         <span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>&amp; getTextureTransform(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16600459
16700472         <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);
16800473
16900478         <span class="keywordtype">void</span> setTextureUScroll(<a class="code" href="namespaceOgre.html#a465">Real</a> value);
17000479         <span class="comment">// get texture uscroll value</span>
17100480         <a class="code" href="namespaceOgre.html#a465">Real</a> getTextureUScroll(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
17200481
17300486         <span class="keywordtype">void</span> setTextureVScroll(<a class="code" href="namespaceOgre.html#a465">Real</a> value);
17400487         <span class="comment">// get texture vscroll value</span>
17500488         <a class="code" href="namespaceOgre.html#a465">Real</a> getTextureVScroll(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
17600489
17700494         <span class="keywordtype">void</span> setTextureUScale(<a class="code" href="namespaceOgre.html#a465">Real</a> value);
17800495         <span class="comment">// get texture uscale value</span>
17900496         <a class="code" href="namespaceOgre.html#a465">Real</a> getTextureUScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
18000497
18100502         <span class="keywordtype">void</span> setTextureVScale(<a class="code" href="namespaceOgre.html#a465">Real</a> value);
18200503         <span class="comment">// get texture vscale value</span>
18300504         <a class="code" href="namespaceOgre.html#a465">Real</a> getTextureVScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
18400505
18500519         <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);
18600520
18700530         <span class="keywordtype">void</span> setTextureRotate(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>&amp; angle);
18800531 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span>
18900532 <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) {
19000533             setTextureRotate ( <a class="code" href="classOgre_1_1Degree.html">Degree</a>(angle) );
19100534         }
19200535 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span>
19300536 <span class="preprocessor"></span>        <span class="comment">// get texture rotation effects angle value</span>
19400537         <span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>&amp; getTextureRotate(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
19500538
19600544         <span class="keyword">const</span> UVWAddressingMode&amp; getTextureAddressingMode(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
19700545
19800555         <span class="keywordtype">void</span> setTextureAddressingMode( TextureAddressingMode tam);
19900556
20000563         <span class="keywordtype">void</span> setTextureAddressingMode( TextureAddressingMode u,
20100564             TextureAddressingMode v, TextureAddressingMode w);
20200565
20300572         <span class="keywordtype">void</span> setTextureAddressingMode( <span class="keyword">const</span> UVWAddressingMode&amp; uvw);
20400573
20500581         <span class="keywordtype">void</span> setTextureBorderColour(<span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>&amp; colour);
20600582
20700588         <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>&amp; getTextureBorderColour(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
20800589
20900654         <span class="keywordtype">void</span> setColourOperationEx(
21000655             LayerBlendOperationEx op,
21100656             LayerBlendSource source1 = LBS_TEXTURE,
21200657             LayerBlendSource source2 = LBS_CURRENT,
21300658
21400659             <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>&amp; arg1 = ColourValue::White,
21500660             <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>&amp; arg2 = ColourValue::White,
21600661
21700662             <a class="code" href="namespaceOgre.html#a465">Real</a> manualBlend = 0.0);
21800663
21900682         <span class="keywordtype">void</span> setColourOperation( <span class="keyword">const</span> LayerBlendOperation op);
22000683
22100703         <span class="keywordtype">void</span> setColourOpMultipassFallback( <span class="keyword">const</span> SceneBlendFactor sourceFactor, <span class="keyword">const</span> SceneBlendFactor destFactor);
22200704
22300707         <span class="keyword">const</span> <a class="code" href="classOgre_1_1LayerBlendModeEx.html">LayerBlendModeEx</a>&amp; getColourBlendMode(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
22400708
22500711         <span class="keyword">const</span> <a class="code" href="classOgre_1_1LayerBlendModeEx.html">LayerBlendModeEx</a>&amp; getAlphaBlendMode(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
22600712
22700715         <a class="code" href="namespaceOgre.html#a639">SceneBlendFactor</a> getColourBlendFallbackSrc(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
22800716
22900719         <a class="code" href="namespaceOgre.html#a639">SceneBlendFactor</a> getColourBlendFallbackDest(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
23000720
23100746         <span class="keywordtype">void</span> setAlphaOperation(LayerBlendOperationEx op,
23200747             LayerBlendSource source1 = LBS_TEXTURE,
23300748             LayerBlendSource source2 = LBS_CURRENT,
23400749             <a class="code" href="namespaceOgre.html#a465">Real</a> arg1 = 1.0,
23500750             <a class="code" href="namespaceOgre.html#a465">Real</a> arg2 = 1.0,
23600751             <a class="code" href="namespaceOgre.html#a465">Real</a> manualBlend = 0.0);
23700752
23800764         <span class="keywordtype">void</span> addEffect(TextureEffect&amp; effect);
23900765
24000793         <span class="keywordtype">void</span> setEnvironmentMap(<span class="keywordtype">bool</span> enable, EnvMapType envMapType = ENV_CURVED);
24100794
24200805         <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);
24300806
24400815         <span class="keywordtype">void</span> setRotateAnimation(<a class="code" href="namespaceOgre.html#a465">Real</a> speed);
24500816
24600836         <span class="keywordtype">void</span> setTransformAnimation( <span class="keyword">const</span> TextureTransformType ttype,
24700837             <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 );
24800838
24900839
25000858         <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);
25100859
25200862         <span class="keywordtype">void</span> removeAllEffects(<span class="keywordtype">void</span>);
25300863
25400869         <span class="keywordtype">void</span> removeEffect( <span class="keyword">const</span> TextureEffectType type );
25500870
25600876         <span class="keywordtype">bool</span> isBlank(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
25700877
25800880         <span class="keywordtype">void</span> setBlank(<span class="keywordtype">void</span>);
25900881
26000882         <span class="comment">// get texture effects in a multimap paired array</span>
26100883         <span class="keyword">const</span> EffectMap&amp; getEffects(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
26200884         <span class="comment">// get the animated-texture animation duration</span>
26300885         <a class="code" href="namespaceOgre.html#a465">Real</a> getAnimationDuration(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
26400886
26500896         <span class="keywordtype">void</span> setTextureFiltering(TextureFilterOptions filterType);
26600901         <span class="keywordtype">void</span> setTextureFiltering(FilterType ftype, FilterOptions opts);
26700910         <span class="keywordtype">void</span> setTextureFiltering(FilterOptions minFilter, FilterOptions magFilter, FilterOptions mipFilter);
26800911         <span class="comment">// get the texture filtering for the given type</span>
26900912         <a class="code" href="namespaceOgre.html#a643">FilterOptions</a> getTextureFiltering(FilterType ftpye) <span class="keyword">const</span>;
27000913
27100919         <span class="keywordtype">void</span> setTextureAnisotropy(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> maxAniso);
27200920         <span class="comment">// get this layer texture anisotropy level</span>
27300921         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getTextureAnisotropy() <span class="keyword">const</span>;
27400922
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; }
27600925
27700927         <span class="keywordtype">void</span> _load(<span class="keywordtype">void</span>);
27800929         <span class="keywordtype">void</span> _unload(<span class="keywordtype">void</span>);
27900931         <span class="keywordtype">bool</span> hasViewRelativeTextureCoordinateGeneration(<span class="keywordtype">void</span>);
28000932
28100933         <span class="comment">// Is this loaded?</span>
28200934         <span class="keywordtype">bool</span> isLoaded(<span class="keywordtype">void</span>);
28300936         <span class="keywordtype">void</span> _notifyNeedsRecompile(<span class="keywordtype">void</span>);
28400937
28500943         <span class="keywordtype">void</span> setName(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; 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>&amp; getName(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mName; }
28700946
28800950         <span class="keywordtype">void</span> setTextureNameAlias(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; 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>&amp; getTextureNameAlias(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mTextureNameAlias;}
29000954
29100969         <span class="keywordtype">bool</span> applyTextureAliases(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a77">AliasTextureNamePairList</a>&amp; aliasList, <span class="keyword">const</span> <span class="keywordtype">bool</span> apply = <span class="keyword">true</span>);
29200970
29300972         <span class="keywordtype">void</span> _notifyParent(<a class="code" href="classOgre_1_1Pass.html">Pass</a>* parent);
29400973     
29500974 <span class="keyword">protected</span>:
29600975         <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;
29800978
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>
30100982         
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>
30400985
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;
30800989
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;
31200993
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;
31600997
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;
32201003
32301004         <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;
32601007
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;
33101016
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;
33401019
33501020
33601021         <span class="comment">//-----------------------------------------------------------------------------</span>
33701022         <span class="comment">// Complex members (those that can't be copied using memcpy) are at the end to </span>
33801023         <span class="comment">// allow for fast copying of the basic members.</span>
33901024         <span class="comment">//</span>
340<a name="l01025"></a><a class="code" href="classOgre_1_1TextureUnitState.html#Ogre_1_1TextureUnitStatep30">01025</a>         std::vector&lt;String&gt; 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;
34401029         <span class="comment">//-----------------------------------------------------------------------------</span>
34501030
34601031         <span class="comment">//-----------------------------------------------------------------------------</span>
34701032         <span class="comment">// Pointer members (those that can't be copied using memcpy), and MUST</span>
34801033         <span class="comment">// preserving even if assign from others</span>
34901034         <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&lt;Real&gt;</a>* mAnimController;
35201037         <span class="comment">//-----------------------------------------------------------------------------</span>
35301038
35401039
35501042         <span class="keywordtype">void</span> recalcTextureMatrix(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
35601043
35701046         <span class="keywordtype">void</span> createAnimController(<span class="keywordtype">void</span>);
35801047
35901050         <span class="keywordtype">void</span> createEffectController(<a class="code" href="structOgre_1_1TextureUnitState_1_1TextureEffect.html">TextureEffect</a>&amp; effect);
36001051
36101052
36201053     };
36301054
36401055
36501056 }
36601057
36701058 <span class="preprocessor">#endif</span>
368</pre></div><hr>
369<p>
370Copyright &copy; 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/>
372This 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
380Last modified Sun Mar 12 14:37:51 2006
381</p>
382</body>
383</html>
Note: See TracBrowser for help on using the repository browser.