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

Revision 692, 23.9 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1<html>
2<head>
3<title>OgreColourValue.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>OgreColourValue.h</h1><a href="OgreColourValue_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://www.ogre3d.org/</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 _COLOURVALUE_H__</span>
3500026 <span class="preprocessor"></span><span class="preprocessor">#define _COLOURVALUE_H__</span>
3600027 <span class="preprocessor"></span>
3700028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span>
3800029
3900030 <span class="keyword">namespace </span>Ogre {
4000031
41<a name="l00032"></a><a class="code" href="namespaceOgre.html#a68">00032</a>     <span class="keyword">typedef</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> <a class="code" href="namespaceOgre.html#a68">RGBA</a>;
42<a name="l00033"></a><a class="code" href="namespaceOgre.html#a69">00033</a>     <span class="keyword">typedef</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> <a class="code" href="namespaceOgre.html#a69">ARGB</a>;
43<a name="l00034"></a><a class="code" href="namespaceOgre.html#a70">00034</a>     <span class="keyword">typedef</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> <a class="code" href="namespaceOgre.html#a70">ABGR</a>;
44<a name="l00035"></a><a class="code" href="namespaceOgre.html#a71">00035</a>     <span class="keyword">typedef</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> <a class="code" href="namespaceOgre.html#a71">BGRA</a>;
4500036
46<a name="l00048"></a><a class="code" href="classOgre_1_1ColourValue.html">00048</a>     <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> ColourValue
4700049     {
4800050     <span class="keyword">public</span>:
49<a name="l00051"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValues0">00051</a>         <span class="keyword">static</span> <span class="keyword">const</span> ColourValue ZERO;
50<a name="l00052"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValues1">00052</a>         <span class="keyword">static</span> <span class="keyword">const</span> ColourValue Black;
51<a name="l00053"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValues2">00053</a>         <span class="keyword">static</span> <span class="keyword">const</span> ColourValue White;
52<a name="l00054"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValues3">00054</a>         <span class="keyword">static</span> <span class="keyword">const</span> ColourValue Red;
53<a name="l00055"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValues4">00055</a>         <span class="keyword">static</span> <span class="keyword">const</span> ColourValue Green;
54<a name="l00056"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValues5">00056</a>         <span class="keyword">static</span> <span class="keyword">const</span> ColourValue Blue;
5500057
56<a name="l00058"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea0">00058</a>         <span class="keyword">explicit</span> ColourValue( <span class="keywordtype">float</span> red = 1.0f,
5700059                     <span class="keywordtype">float</span> green = 1.0f,
5800060                     <span class="keywordtype">float</span> blue = 1.0f,
5900061                     <span class="keywordtype">float</span> alpha = 1.0f ) : r(red), g(green), b(blue), a(alpha)
6000062         { }
6100063
6200064         <span class="keywordtype">bool</span> <a class="code" href="namespaceOgre.html#a623">operator==</a>(<span class="keyword">const</span> ColourValue&amp; rhs) <span class="keyword">const</span>;
6300065         <span class="keywordtype">bool</span> <a class="code" href="namespaceOgre.html#a624">operator!=</a>(<span class="keyword">const</span> ColourValue&amp; rhs) <span class="keyword">const</span>;
6400066
6500067         <span class="keyword">union </span>{
6600068             <span class="keyword">struct </span>{
67<a name="l00069"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">00069</a>                 <span class="keywordtype">float</span> r,g,b,a;
6800070             };
69<a name="l00071"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo4">00071</a>             <span class="keywordtype">float</span> val[4];
7000072         };
7100073
7200076         <a class="code" href="namespaceOgre.html#a68">RGBA</a> getAsRGBA(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
7300077
7400080         <a class="code" href="namespaceOgre.html#a69">ARGB</a> getAsARGB(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
7500081
7600084         <a class="code" href="namespaceOgre.html#a71">BGRA</a> getAsBGRA(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
7700085
7800087         <a class="code" href="namespaceOgre.html#a70">ABGR</a> getAsABGR(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
7900088
8000091         <span class="keywordtype">void</span> setAsRGBA(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a68">RGBA</a> val);
8100092
8200095         <span class="keywordtype">void</span> setAsARGB(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a69">ARGB</a> val);
8300096
8400099         <span class="keywordtype">void</span> setAsBGRA(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a71">BGRA</a> val);
8500100
8600103         <span class="keywordtype">void</span> setAsABGR(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a70">ABGR</a> val);
8700104
88<a name="l00107"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea11">00107</a>         <span class="keywordtype">void</span> saturate(<span class="keywordtype">void</span>)
8900108         {
9000109             <span class="keywordflow">if</span> (r &lt; 0)
9100110                 r = 0;
9200111             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (r &gt; 1)
9300112                 r = 1;
9400113
9500114             <span class="keywordflow">if</span> (g &lt; 0)
9600115                 g = 0;
9700116             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (g &gt; 1)
9800117                 g = 1;
9900118
10000119             <span class="keywordflow">if</span> (b &lt; 0)
10100120                 b = 0;
10200121             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (b &gt; 1)
10300122                 b = 1;
10400123
10500124             <span class="keywordflow">if</span> (a &lt; 0)
10600125                 a = 0;
10700126             <span class="keywordflow">else</span> <span class="keywordflow">if</span> (a &gt; 1)
10800127                 a = 1;
10900128         }
11000129
111<a name="l00132"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea12">00132</a>         ColourValue saturateCopy(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
11200133 <span class="keyword">        </span>{
11300134             ColourValue ret = *<span class="keyword">this</span>;
11400135             ret.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea11">saturate</a>();
11500136             <span class="keywordflow">return</span> ret;
11600137         }
11700138
11800139         <span class="comment">// arithmetic operations</span>
119<a name="l00140"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea13">00140</a>         <span class="keyword">inline</span> ColourValue operator + ( <span class="keyword">const</span> ColourValue&amp; rkVector )<span class="keyword"> const</span>
12000141 <span class="keyword">        </span>{
12100142             ColourValue kSum;
12200143
12300144             kSum.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> = r + rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a>;
12400145             kSum.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> = g + rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a>;
12500146             kSum.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> = b + rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a>;
12600147             kSum.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> = a + rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a>;
12700148
12800149             <span class="keywordflow">return</span> kSum;
12900150         }
13000151
131<a name="l00152"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea14">00152</a>         <span class="keyword">inline</span> ColourValue operator - ( <span class="keyword">const</span> ColourValue&amp; rkVector )<span class="keyword"> const</span>
13200153 <span class="keyword">        </span>{
13300154             ColourValue kDiff;
13400155
13500156             kDiff.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> = r - rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a>;
13600157             kDiff.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> = g - rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a>;
13700158             kDiff.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> = b - rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a>;
13800159             kDiff.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> = a - rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a>;
13900160
14000161             <span class="keywordflow">return</span> kDiff;
14100162         }
14200163
143<a name="l00164"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea15">00164</a>         <span class="keyword">inline</span> ColourValue <a class="code" href="namespaceOgre.html#a617">operator * </a>(<span class="keyword">const</span> <span class="keywordtype">float</span> fScalar )<span class="keyword"> const</span>
14400165 <span class="keyword">        </span>{
14500166             ColourValue kProd;
14600167
14700168             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> = fScalar*r;
14800169             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> = fScalar*g;
14900170             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> = fScalar*b;
15000171             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> = fScalar*a;
15100172
15200173             <span class="keywordflow">return</span> kProd;
15300174         }
15400175
155<a name="l00176"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea16">00176</a>         <span class="keyword">inline</span> ColourValue <a class="code" href="namespaceOgre.html#a617">operator * </a>( <span class="keyword">const</span> ColourValue&amp; rhs)<span class="keyword"> const</span>
15600177 <span class="keyword">        </span>{
15700178             ColourValue kProd;
15800179
15900180             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> = rhs.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> * r;
16000181             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> = rhs.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> * g;
16100182             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> = rhs.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> * b;
16200183             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> = rhs.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> * a;
16300184
16400185             <span class="keywordflow">return</span> kProd;
16500186         }
16600187
167<a name="l00188"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea17">00188</a>         <span class="keyword">inline</span> ColourValue <a class="code" href="namespaceOgre.html#a618">operator / </a>( <span class="keyword">const</span> ColourValue&amp; rhs)<span class="keyword"> const</span>
16800189 <span class="keyword">        </span>{
16900190             ColourValue kProd;
17000191
17100192             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> = rhs.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> / r;
17200193             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> = rhs.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> / g;
17300194             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> = rhs.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> / b;
17400195             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> = rhs.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> / a;
17500196
17600197             <span class="keywordflow">return</span> kProd;
17700198         }
17800199
179<a name="l00200"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea18">00200</a>         <span class="keyword">inline</span> ColourValue <a class="code" href="namespaceOgre.html#a618">operator / </a>(<span class="keyword">const</span> <span class="keywordtype">float</span> fScalar )<span class="keyword"> const</span>
18000201 <span class="keyword">        </span>{
18100202             assert( fScalar != 0.0 );
18200203
18300204             ColourValue kDiv;
18400205
18500206             <span class="keywordtype">float</span> fInv = 1.0 / fScalar;
18600207             kDiv.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> = r * fInv;
18700208             kDiv.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> = g * fInv;
18800209             kDiv.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> = b * fInv;
18900210             kDiv.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> = a * fInv;
19000211
19100212             <span class="keywordflow">return</span> kDiv;
19200213         }
19300214
194<a name="l00215"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuen0">00215</a>         <span class="keyword">inline</span> <span class="keyword">friend</span> ColourValue <a class="code" href="namespaceOgre.html#a617">operator * </a>(<span class="keyword">const</span> <span class="keywordtype">float</span> fScalar, <span class="keyword">const</span> ColourValue&amp; rkVector )
19500216         {
19600217             ColourValue kProd;
19700218
19800219             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a> = fScalar * rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a>;
19900220             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a> = fScalar * rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a>;
20000221             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a> = fScalar * rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a>;
20100222             kProd.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a> = fScalar * rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a>;
20200223
20300224             <span class="keywordflow">return</span> kProd;
20400225         }
20500226
20600227         <span class="comment">// arithmetic updates</span>
207<a name="l00228"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea19">00228</a>         <span class="keyword">inline</span> ColourValue&amp; operator += ( <span class="keyword">const</span> ColourValue&amp; rkVector )
20800229         {
20900230             r += rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a>;
21000231             g += rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a>;
21100232             b += rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a>;
21200233             a += rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a>;
21300234
21400235             <span class="keywordflow">return</span> *<span class="keyword">this</span>;
21500236         }
21600237
217<a name="l00238"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea20">00238</a>         <span class="keyword">inline</span> ColourValue&amp; operator -= ( <span class="keyword">const</span> ColourValue&amp; rkVector )
21800239         {
21900240             r -= rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo0">r</a>;
22000241             g -= rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo1">g</a>;
22100242             b -= rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo2">b</a>;
22200243             a -= rkVector.<a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValueo3">a</a>;
22300244
22400245             <span class="keywordflow">return</span> *<span class="keyword">this</span>;
22500246         }
22600247
227<a name="l00248"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea21">00248</a>         <span class="keyword">inline</span> ColourValue&amp; operator *= (<span class="keyword">const</span> <span class="keywordtype">float</span> fScalar )
22800249         {
22900250             r *= fScalar;
23000251             g *= fScalar;
23100252             b *= fScalar;
23200253             a *= fScalar;
23300254             <span class="keywordflow">return</span> *<span class="keyword">this</span>;
23400255         }
23500256
236<a name="l00257"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuea22">00257</a>         <span class="keyword">inline</span> ColourValue&amp; operator /= (<span class="keyword">const</span> <span class="keywordtype">float</span> fScalar )
23700258         {
23800259             assert( fScalar != 0.0 );
23900260
24000261             <span class="keywordtype">float</span> fInv = 1.0 / fScalar;
24100262
24200263             r *= fInv;
24300264             g *= fInv;
24400265             b *= fInv;
24500266             a *= fInv;
24600267
24700268             <span class="keywordflow">return</span> *<span class="keyword">this</span>;
24800269         }
24900270
25000276         <span class="keywordtype">void</span> setHSB(<a class="code" href="namespaceOgre.html#a465">Real</a> hue, <a class="code" href="namespaceOgre.html#a465">Real</a> saturation, <a class="code" href="namespaceOgre.html#a465">Real</a> brightness);
25100277
25200278
25300281         <span class="keyword">inline</span> <a class="code" href="class__OgreExport.html">_OgreExport</a> <span class="keyword">friend</span> std::ostream&amp; <span class="keyword">operator</span> &lt;&lt;
254<a name="l00282"></a><a class="code" href="classOgre_1_1ColourValue.html#Ogre_1_1ColourValuen1">00282</a>             ( std::ostream&amp; o, <span class="keyword">const</span> ColourValue&amp; c )
25500283         {
25600284             o &lt;&lt; <span class="stringliteral">"ColourValue("</span> &lt;&lt; c.r &lt;&lt; <span class="stringliteral">", "</span> &lt;&lt; c.g &lt;&lt; <span class="stringliteral">", "</span> &lt;&lt; c.b &lt;&lt; <span class="stringliteral">", "</span> &lt;&lt; c.a &lt;&lt; <span class="stringliteral">")"</span>;
25700285             <span class="keywordflow">return</span> o;
25800286         }
25900287
26000288     };
26100289
26200290 } <span class="comment">// namespace</span>
26300291
26400292 <span class="preprocessor">#endif</span>
265</pre></div><hr>
266<p>
267Copyright &copy; 2000-2005 by The OGRE Team<br />
268<!--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/>
269This 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/>
270                <!--/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#">
271                <Work rdf:about="">
272                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
273        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
274                </Work>
275                <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> -->
276
277Last modified Sun Mar 12 14:37:38 2006
278</p>
279</body>
280</html>
Note: See TracBrowser for help on using the repository browser.