1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgrePixelFormat.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>OgrePixelFormat.h</h1><a href="OgrePixelFormat_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 <span class="preprocessor">#ifndef _PixelFormat_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define _PixelFormat_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 |
---|
40 | 00031 <span class="keyword">namespace </span>Ogre { |
---|
41 | <a name="l00033"></a><a class="code" href="namespaceOgre.html#a671">00033</a> <span class="keyword">enum</span> <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> |
---|
42 | 00034 { |
---|
43 | 00036 <a class="code" href="namespaceOgre.html#a671a400">PF_UNKNOWN</a> = 0, |
---|
44 | 00038 <a class="code" href="namespaceOgre.html#a671a401">PF_L8</a> = 1, |
---|
45 | 00039 <a class="code" href="namespaceOgre.html#a671a402">PF_BYTE_L</a> = <a class="code" href="namespaceOgre.html#a671a401">PF_L8</a>, |
---|
46 | 00041 <a class="code" href="namespaceOgre.html#a671a403">PF_L16</a> = 2, |
---|
47 | 00042 <a class="code" href="namespaceOgre.html#a671a404">PF_SHORT_L</a> = <a class="code" href="namespaceOgre.html#a671a403">PF_L16</a>, |
---|
48 | 00044 <a class="code" href="namespaceOgre.html#a671a405">PF_A8</a> = 3, |
---|
49 | 00045 <a class="code" href="namespaceOgre.html#a671a406">PF_BYTE_A</a> = <a class="code" href="namespaceOgre.html#a671a405">PF_A8</a>, |
---|
50 | 00047 <a class="code" href="namespaceOgre.html#a671a407">PF_A4L4</a> = 4, |
---|
51 | 00049 <a class="code" href="namespaceOgre.html#a671a408">PF_BYTE_LA</a> = 5, |
---|
52 | 00051 <a class="code" href="namespaceOgre.html#a671a409">PF_R5G6B5</a> = 6, |
---|
53 | 00053 <a class="code" href="namespaceOgre.html#a671a410">PF_B5G6R5</a> = 7, |
---|
54 | 00055 <a class="code" href="namespaceOgre.html#a671a411">PF_R3G3B2</a> = 31, |
---|
55 | 00057 <a class="code" href="namespaceOgre.html#a671a412">PF_A4R4G4B4</a> = 8, |
---|
56 | 00059 <a class="code" href="namespaceOgre.html#a671a413">PF_A1R5G5B5</a> = 9, |
---|
57 | 00061 <a class="code" href="namespaceOgre.html#a671a414">PF_R8G8B8</a> = 10, |
---|
58 | 00063 <a class="code" href="namespaceOgre.html#a671a415">PF_B8G8R8</a> = 11, |
---|
59 | 00065 <a class="code" href="namespaceOgre.html#a671a416">PF_A8R8G8B8</a> = 12, |
---|
60 | 00067 <a class="code" href="namespaceOgre.html#a671a417">PF_A8B8G8R8</a> = 13, |
---|
61 | 00069 <a class="code" href="namespaceOgre.html#a671a418">PF_B8G8R8A8</a> = 14, |
---|
62 | 00071 <a class="code" href="namespaceOgre.html#a671a419">PF_R8G8B8A8</a> = 28, |
---|
63 | 00074 <a class="code" href="namespaceOgre.html#a671a420">PF_X8R8G8B8</a> = 26, |
---|
64 | 00077 <a class="code" href="namespaceOgre.html#a671a421">PF_X8B8G8R8</a> = 27, |
---|
65 | 00078 <span class="preprocessor">#if OGRE_ENDIAN == OGRE_ENDIAN_BIG</span> |
---|
66 | 00079 <span class="preprocessor"></span> |
---|
67 | 00080 <a class="code" href="namespaceOgre.html#a671a422">PF_BYTE_RGB</a> = <a class="code" href="namespaceOgre.html#a671a414">PF_R8G8B8</a>, |
---|
68 | 00082 <a class="code" href="namespaceOgre.html#a671a423">PF_BYTE_BGR</a> = <a class="code" href="namespaceOgre.html#a671a415">PF_B8G8R8</a>, |
---|
69 | 00084 <a class="code" href="namespaceOgre.html#a671a424">PF_BYTE_BGRA</a> = <a class="code" href="namespaceOgre.html#a671a418">PF_B8G8R8A8</a>, |
---|
70 | 00086 <a class="code" href="namespaceOgre.html#a671a425">PF_BYTE_RGBA</a> = <a class="code" href="namespaceOgre.html#a671a419">PF_R8G8B8A8</a>, |
---|
71 | 00087 <span class="preprocessor">#else</span> |
---|
72 | 00088 <span class="preprocessor"></span> |
---|
73 | 00089 <a class="code" href="namespaceOgre.html#a671a422">PF_BYTE_RGB</a> = <a class="code" href="namespaceOgre.html#a671a415">PF_B8G8R8</a>, |
---|
74 | 00091 <a class="code" href="namespaceOgre.html#a671a423">PF_BYTE_BGR</a> = <a class="code" href="namespaceOgre.html#a671a414">PF_R8G8B8</a>, |
---|
75 | 00093 <a class="code" href="namespaceOgre.html#a671a424">PF_BYTE_BGRA</a> = <a class="code" href="namespaceOgre.html#a671a416">PF_A8R8G8B8</a>, |
---|
76 | 00095 <a class="code" href="namespaceOgre.html#a671a425">PF_BYTE_RGBA</a> = <a class="code" href="namespaceOgre.html#a671a417">PF_A8B8G8R8</a>, |
---|
77 | 00096 <span class="preprocessor">#endif </span> |
---|
78 | 00097 <span class="preprocessor"></span> |
---|
79 | 00098 <a class="code" href="namespaceOgre.html#a671a426">PF_A2R10G10B10</a> = 15, |
---|
80 | 00100 <a class="code" href="namespaceOgre.html#a671a427">PF_A2B10G10R10</a> = 16, |
---|
81 | 00102 <a class="code" href="namespaceOgre.html#a671a428">PF_DXT1</a> = 17, |
---|
82 | 00104 <a class="code" href="namespaceOgre.html#a671a429">PF_DXT2</a> = 18, |
---|
83 | 00106 <a class="code" href="namespaceOgre.html#a671a430">PF_DXT3</a> = 19, |
---|
84 | 00108 <a class="code" href="namespaceOgre.html#a671a431">PF_DXT4</a> = 20, |
---|
85 | 00110 <a class="code" href="namespaceOgre.html#a671a432">PF_DXT5</a> = 21, |
---|
86 | 00111 <span class="comment">// 16-bit pixel format, 16 bits (float) for red</span> |
---|
87 | 00112 <a class="code" href="namespaceOgre.html#a671a433">PF_FLOAT16_R</a> = 32, |
---|
88 | 00113 <span class="comment">// 48-bit pixel format, 16 bits (float) for red, 16 bits (float) for green, 16 bits (float) for blue</span> |
---|
89 | 00114 <a class="code" href="namespaceOgre.html#a671a434">PF_FLOAT16_RGB</a> = 22, |
---|
90 | 00115 <span class="comment">// 64-bit pixel format, 16 bits (float) for red, 16 bits (float) for green, 16 bits (float) for blue, 16 bits (float) for alpha</span> |
---|
91 | 00116 <a class="code" href="namespaceOgre.html#a671a435">PF_FLOAT16_RGBA</a> = 23, |
---|
92 | 00117 <span class="comment">// 16-bit pixel format, 16 bits (float) for red</span> |
---|
93 | 00118 <a class="code" href="namespaceOgre.html#a671a436">PF_FLOAT32_R</a> = 33, |
---|
94 | 00119 <span class="comment">// 96-bit pixel format, 32 bits (float) for red, 32 bits (float) for green, 32 bits (float) for blue</span> |
---|
95 | 00120 <a class="code" href="namespaceOgre.html#a671a437">PF_FLOAT32_RGB</a> = 24, |
---|
96 | 00121 <span class="comment">// 128-bit pixel format, 32 bits (float) for red, 32 bits (float) for green, 32 bits (float) for blue, 32 bits (float) for alpha</span> |
---|
97 | 00122 <a class="code" href="namespaceOgre.html#a671a438">PF_FLOAT32_RGBA</a> = 25, |
---|
98 | 00123 <span class="comment">// Depth texture format</span> |
---|
99 | 00124 <a class="code" href="namespaceOgre.html#a671a439">PF_DEPTH</a> = 29, |
---|
100 | 00125 <span class="comment">// 64-bit pixel format, 16 bits for red, green, blue and alpha</span> |
---|
101 | 00126 <a class="code" href="namespaceOgre.html#a671a440">PF_SHORT_RGBA</a> = 30, |
---|
102 | 00127 <span class="comment">// Number of pixel formats currently defined</span> |
---|
103 | 00128 <a class="code" href="namespaceOgre.html#a671a441">PF_COUNT</a> = 34 |
---|
104 | 00129 }; |
---|
105 | 00130 |
---|
106 | <a name="l00134"></a><a class="code" href="namespaceOgre.html#a672">00134</a> <span class="keyword">enum</span> <a class="code" href="namespaceOgre.html#a672">PixelFormatFlags</a> { |
---|
107 | 00135 <span class="comment">// This format has an alpha channel</span> |
---|
108 | 00136 <a class="code" href="namespaceOgre.html#a672a442">PFF_HASALPHA</a> = 0x00000001, |
---|
109 | 00137 <span class="comment">// This format is compressed. This invalidates the values in elemBytes,</span> |
---|
110 | 00138 <span class="comment">// elemBits and the bit counts as these might not be fixed in a compressed format.</span> |
---|
111 | 00139 <a class="code" href="namespaceOgre.html#a672a443">PFF_COMPRESSED</a> = 0x00000002, |
---|
112 | 00140 <span class="comment">// This is a floating point format</span> |
---|
113 | 00141 <a class="code" href="namespaceOgre.html#a672a444">PFF_FLOAT</a> = 0x00000004, |
---|
114 | 00142 <span class="comment">// This is a depth format (for depth textures)</span> |
---|
115 | 00143 <a class="code" href="namespaceOgre.html#a672a445">PFF_DEPTH</a> = 0x00000008, |
---|
116 | 00144 <span class="comment">// Format is in native endian. Generally true for the 16, 24 and 32 bits</span> |
---|
117 | 00145 <span class="comment">// formats which can be represented as machine integers.</span> |
---|
118 | 00146 <a class="code" href="namespaceOgre.html#a672a446">PFF_NATIVEENDIAN</a> = 0x00000010, |
---|
119 | 00147 <span class="comment">// This is an intensity format instead of a RGB one. The luminance</span> |
---|
120 | 00148 <span class="comment">// replaces R,G and B. (but not A)</span> |
---|
121 | 00149 <a class="code" href="namespaceOgre.html#a672a447">PFF_LUMINANCE</a> = 0x00000020 |
---|
122 | 00150 }; |
---|
123 | 00151 |
---|
124 | <a name="l00153"></a><a class="code" href="namespaceOgre.html#a673">00153</a> <span class="keyword">enum</span> <a class="code" href="namespaceOgre.html#a673">PixelComponentType</a> |
---|
125 | 00154 { |
---|
126 | 00155 <a class="code" href="namespaceOgre.html#a673a448">PCT_BYTE</a> = 0, |
---|
127 | 00156 <a class="code" href="namespaceOgre.html#a673a449">PCT_SHORT</a> = 1, |
---|
128 | 00157 <a class="code" href="namespaceOgre.html#a673a450">PCT_FLOAT16</a> = 2, |
---|
129 | 00158 <a class="code" href="namespaceOgre.html#a673a451">PCT_FLOAT32</a> = 3, |
---|
130 | 00159 <a class="code" href="namespaceOgre.html#a673a452">PCT_COUNT</a> = 4 |
---|
131 | 00160 }; |
---|
132 | 00161 |
---|
133 | <a name="l00167"></a><a class="code" href="classOgre_1_1PixelBox.html">00167</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> PixelBox: <span class="keyword">public</span> <a class="code" href="structOgre_1_1Box.html">Box</a> { |
---|
134 | 00168 <span class="keyword">public</span>: |
---|
135 | <a name="l00170"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa0">00170</a> PixelBox() {} |
---|
136 | <a name="l00178"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa1">00178</a> PixelBox(<span class="keyword">const</span> <a class="code" href="structOgre_1_1Box.html">Box</a> &extents, PixelFormat pixelFormat, <span class="keywordtype">void</span> *pixelData=0): |
---|
137 | 00179 <a class="code" href="structOgre_1_1Box.html">Box</a>(extents), data(pixelData), format(pixelFormat) |
---|
138 | 00180 { |
---|
139 | 00181 setConsecutive(); |
---|
140 | 00182 } |
---|
141 | <a name="l00192"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa2">00192</a> PixelBox(size_t width, size_t height, size_t depth, PixelFormat pixelFormat, <span class="keywordtype">void</span> *pixelData=0): |
---|
142 | 00193 <a class="code" href="structOgre_1_1Box.html">Box</a>(0, 0, 0, width, height, depth), |
---|
143 | 00194 data(pixelData), format(pixelFormat) |
---|
144 | 00195 { |
---|
145 | 00196 setConsecutive(); |
---|
146 | 00197 } |
---|
147 | 00198 |
---|
148 | <a name="l00200"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo0">00200</a> <span class="keywordtype">void</span> *data; |
---|
149 | <a name="l00202"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo1">00202</a> <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format; |
---|
150 | <a name="l00207"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo2">00207</a> size_t rowPitch; |
---|
151 | <a name="l00213"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxo3">00213</a> size_t slicePitch; |
---|
152 | 00214 |
---|
153 | <a name="l00218"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa3">00218</a> <span class="keywordtype">void</span> setConsecutive() |
---|
154 | 00219 { |
---|
155 | 00220 rowPitch = getWidth(); |
---|
156 | 00221 slicePitch = getWidth()*getHeight(); |
---|
157 | 00222 } |
---|
158 | <a name="l00227"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa4">00227</a> size_t getRowSkip()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rowPitch - getWidth(); } |
---|
159 | <a name="l00232"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa5">00232</a> size_t getSliceSkip()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> slicePitch - (getHeight() * rowPitch); } |
---|
160 | 00233 |
---|
161 | <a name="l00237"></a><a class="code" href="classOgre_1_1PixelBox.html#Ogre_1_1PixelBoxa6">00237</a> <span class="keywordtype">bool</span> isConsecutive()<span class="keyword"> const </span> |
---|
162 | 00238 <span class="keyword"> </span>{ |
---|
163 | 00239 <span class="keywordflow">return</span> rowPitch == getWidth() && slicePitch == getWidth()*getHeight(); |
---|
164 | 00240 } |
---|
165 | 00244 size_t getConsecutiveSize() <span class="keyword">const</span>; |
---|
166 | 00253 PixelBox getSubVolume(<span class="keyword">const</span> <a class="code" href="structOgre_1_1Box.html">Box</a> &def) <span class="keyword">const</span>; |
---|
167 | 00254 }; |
---|
168 | 00255 |
---|
169 | 00256 |
---|
170 | <a name="l00260"></a><a class="code" href="classOgre_1_1PixelUtil.html">00260</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> PixelUtil { |
---|
171 | 00261 <span class="keyword">public</span>: |
---|
172 | 00268 <span class="keyword">static</span> size_t getNumElemBytes( <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format ); |
---|
173 | 00269 |
---|
174 | 00276 <span class="keyword">static</span> size_t getNumElemBits( <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format ); |
---|
175 | 00277 |
---|
176 | 00295 <span class="keyword">static</span> size_t getMemorySize(size_t width, size_t height, size_t depth, <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format); |
---|
177 | 00296 |
---|
178 | 00304 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getFlags( <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format ); |
---|
179 | 00305 |
---|
180 | 00307 <span class="keyword">static</span> <span class="keywordtype">bool</span> hasAlpha(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format); |
---|
181 | 00309 <span class="keyword">static</span> <span class="keywordtype">bool</span> isFloatingPoint(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format); |
---|
182 | 00311 <span class="keyword">static</span> <span class="keywordtype">bool</span> isCompressed(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format); |
---|
183 | 00313 <span class="keyword">static</span> <span class="keywordtype">bool</span> isDepth(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format); |
---|
184 | 00315 <span class="keyword">static</span> <span class="keywordtype">bool</span> isNativeEndian(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format); |
---|
185 | 00317 <span class="keyword">static</span> <span class="keywordtype">bool</span> isLuminance(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format); |
---|
186 | 00318 |
---|
187 | 00331 <span class="keyword">static</span> <span class="keywordtype">bool</span> isValidExtent(size_t width, size_t height, size_t depth, <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format); |
---|
188 | 00332 |
---|
189 | 00336 <span class="keyword">static</span> <span class="keywordtype">void</span> getBitDepths(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format, <span class="keywordtype">int</span> rgba[4]); |
---|
190 | 00337 |
---|
191 | 00341 <span class="keyword">static</span> <span class="keywordtype">void</span> getBitMasks(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> format, <a class="code" href="namespaceOgre.html#a455">uint32</a> rgba[4]); |
---|
192 | 00342 |
---|
193 | 00345 <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a471">String</a> getFormatName(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> srcformat); |
---|
194 | 00346 |
---|
195 | 00354 <span class="keyword">static</span> <span class="keywordtype">bool</span> isAccessible(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> srcformat); |
---|
196 | 00355 |
---|
197 | 00360 <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a673">PixelComponentType</a> getComponentType(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> fmt); |
---|
198 | 00361 |
---|
199 | 00365 <span class="keyword">static</span> size_t getComponentCount(<a class="code" href="namespaceOgre.html#a671">PixelFormat</a> fmt); |
---|
200 | 00366 |
---|
201 | 00372 <span class="keyword">static</span> <span class="keywordtype">void</span> packColour(<span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> &colour, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> pf, <span class="keyword">const</span> <span class="keywordtype">void</span>* dest); |
---|
202 | 00378 <span class="keyword">static</span> <span class="keywordtype">void</span> packColour(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a457">uint8</a> r, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a457">uint8</a> g, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a457">uint8</a> b, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a457">uint8</a> a, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> pf, <span class="keyword">const</span> <span class="keywordtype">void</span>* dest); |
---|
203 | 00386 <span class="keyword">static</span> <span class="keywordtype">void</span> packColour(<span class="keyword">const</span> <span class="keywordtype">float</span> r, <span class="keyword">const</span> <span class="keywordtype">float</span> g, <span class="keyword">const</span> <span class="keywordtype">float</span> b, <span class="keyword">const</span> <span class="keywordtype">float</span> a, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> pf, <span class="keyword">const</span> <span class="keywordtype">void</span>* dest); |
---|
204 | 00387 |
---|
205 | 00393 <span class="keyword">static</span> <span class="keywordtype">void</span> unpackColour(<a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a> *colour, <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> pf, <span class="keyword">const</span> <span class="keywordtype">void</span>* src); |
---|
206 | 00402 <span class="keyword">static</span> <span class="keywordtype">void</span> unpackColour(<a class="code" href="namespaceOgre.html#a457">uint8</a> *r, <a class="code" href="namespaceOgre.html#a457">uint8</a> *g, <a class="code" href="namespaceOgre.html#a457">uint8</a> *b, <a class="code" href="namespaceOgre.html#a457">uint8</a> *a, <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> pf, <span class="keyword">const</span> <span class="keywordtype">void</span>* src); |
---|
207 | 00408 <span class="keyword">static</span> <span class="keywordtype">void</span> unpackColour(<span class="keywordtype">float</span> *r, <span class="keywordtype">float</span> *g, <span class="keywordtype">float</span> *b, <span class="keywordtype">float</span> *a, <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> pf, <span class="keyword">const</span> <span class="keywordtype">void</span>* src); |
---|
208 | 00409 |
---|
209 | 00418 <span class="keyword">static</span> <span class="keywordtype">void</span> bulkPixelConversion(<span class="keywordtype">void</span> *src, <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> srcFormat, <span class="keywordtype">void</span> *dest, <a class="code" href="namespaceOgre.html#a671">PixelFormat</a> dstFormat, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count); |
---|
210 | 00419 |
---|
211 | 00427 <span class="keyword">static</span> <span class="keywordtype">void</span> bulkPixelConversion(<span class="keyword">const</span> PixelBox &src, <span class="keyword">const</span> PixelBox &dst); |
---|
212 | 00428 }; |
---|
213 | 00429 |
---|
214 | 00430 }; |
---|
215 | 00431 |
---|
216 | 00432 <span class="preprocessor">#endif</span> |
---|
217 | </pre></div><hr> |
---|
218 | <p> |
---|
219 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
220 | <!--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/> |
---|
221 | 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/> |
---|
222 | <!--/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#"> |
---|
223 | <Work rdf:about=""> |
---|
224 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
225 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
226 | </Work> |
---|
227 | <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> --> |
---|
228 | |
---|
229 | Last modified Sun Mar 12 14:37:46 2006 |
---|
230 | </p> |
---|
231 | </body> |
---|
232 | </html> |
---|