1 | <html> |
---|
2 | <head> |
---|
3 | <title>Ogre::Bitwise class Reference - 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>Ogre::Bitwise Class Reference</h1>Class for manipulating bit patterns. |
---|
11 | <a href="#_details">More...</a> |
---|
12 | <p> |
---|
13 | <code>#include <<a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>></code> |
---|
14 | <p> |
---|
15 | <a href="classOgre_1_1Bitwise-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> |
---|
16 | <tr><td></td></tr> |
---|
17 | <tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr> |
---|
18 | <tr><td class="memItemLeft" nowrap align=right valign=top>template<typename T> FORCEINLINE unsigned int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee0">getBitShift</a> (T mask)</td></tr> |
---|
19 | |
---|
20 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bits a pattern must be shifted right by to remove right-hand zeroes. <a href="#Ogre_1_1Bitwisee0"></a><br><br></td></tr> |
---|
21 | <tr><td class="memItemLeft" nowrap align=right valign=top>template<typename SrcT, typename DestT> DestT </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee1">convertBitPattern</a> (SrcT srcValue, SrcT srcBitMask, DestT destBitMask)</td></tr> |
---|
22 | |
---|
23 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Takes a value with a given src bit mask, and produces another value with a desired bit mask. <a href="#Ogre_1_1Bitwisee1"></a><br><br></td></tr> |
---|
24 | <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee2">fixedToFixed</a> (<a class="el" href="namespaceOgre.html#a412">uint32</a> value, unsigned int n, unsigned int p)</td></tr> |
---|
25 | |
---|
26 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert N bit colour channel value to P bits. <a href="#Ogre_1_1Bitwisee2"></a><br><br></td></tr> |
---|
27 | <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee3">floatToFixed</a> (const float value, const unsigned int bits)</td></tr> |
---|
28 | |
---|
29 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert floating point colour channel value between 0.0 and 1.0 (otherwise clamped) to integer of a certain number of bits. <a href="#Ogre_1_1Bitwisee3"></a><br><br></td></tr> |
---|
30 | <tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee4">fixedToFloat</a> (unsigned value, unsigned int bits)</td></tr> |
---|
31 | |
---|
32 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Fixed point to float. <a href="#Ogre_1_1Bitwisee4"></a><br><br></td></tr> |
---|
33 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee5">intWrite</a> (const void *dest, const int n, const unsigned int value)</td></tr> |
---|
34 | |
---|
35 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write a n*8 bits integer value to memory in native endian. <a href="#Ogre_1_1Bitwisee5"></a><br><br></td></tr> |
---|
36 | <tr><td class="memItemLeft" nowrap align=right valign=top>unsigned int </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee6">intRead</a> (const void *src, int n)</td></tr> |
---|
37 | |
---|
38 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Read a n*8 bits integer value to memory in native endian. <a href="#Ogre_1_1Bitwisee6"></a><br><br></td></tr> |
---|
39 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a413">uint16</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee7">floatToHalf</a> (float i)</td></tr> |
---|
40 | |
---|
41 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a float32 to a float16 (NV_half_float) Courtesy of OpenEXR. <a href="#Ogre_1_1Bitwisee7"></a><br><br></td></tr> |
---|
42 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a413">uint16</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee8">floatToHalfI</a> (<a class="el" href="namespaceOgre.html#a412">uint32</a> i)</td></tr> |
---|
43 | |
---|
44 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts float in uint32 format to a a half in uint16 format. <a href="#Ogre_1_1Bitwisee8"></a><br><br></td></tr> |
---|
45 | <tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee9">halfToFloat</a> (<a class="el" href="namespaceOgre.html#a413">uint16</a> y)</td></tr> |
---|
46 | |
---|
47 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a float16 (NV_half_float) to a float32 Courtesy of OpenEXR. <a href="#Ogre_1_1Bitwisee9"></a><br><br></td></tr> |
---|
48 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a412">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwisee10">halfToFloatI</a> (<a class="el" href="namespaceOgre.html#a413">uint16</a> y)</td></tr> |
---|
49 | |
---|
50 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Converts a half in uint16 format to a float in uint32 format. <a href="#Ogre_1_1Bitwisee10"></a><br><br></td></tr> |
---|
51 | </table> |
---|
52 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
53 | Class for manipulating bit patterns. |
---|
54 | <p> |
---|
55 | |
---|
56 | <p> |
---|
57 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00034">34</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>.<hr><h2>Member Function Documentation</h2> |
---|
58 | <a class="anchor" name="Ogre_1_1Bitwisee1" doxytag="Ogre::Bitwise::convertBitPattern" ></a><p> |
---|
59 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
60 | <tr> |
---|
61 | <td class="mdRow"> |
---|
62 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
63 | <tr> |
---|
64 | <td class="md" colspan="4"> |
---|
65 | template<typename SrcT, typename DestT> </td> |
---|
66 | </tr> |
---|
67 | <tr> |
---|
68 | <td class="md" nowrap valign="top"> DestT Ogre::Bitwise::convertBitPattern </td> |
---|
69 | <td class="md" valign="top">( </td> |
---|
70 | <td class="md" nowrap valign="top">SrcT </td> |
---|
71 | <td class="mdname" nowrap> <em>srcValue</em>, </td> |
---|
72 | </tr> |
---|
73 | <tr> |
---|
74 | <td class="md" nowrap align="right"></td> |
---|
75 | <td></td> |
---|
76 | <td class="md" nowrap>SrcT </td> |
---|
77 | <td class="mdname" nowrap> <em>srcBitMask</em>, </td> |
---|
78 | </tr> |
---|
79 | <tr> |
---|
80 | <td class="md" nowrap align="right"></td> |
---|
81 | <td></td> |
---|
82 | <td class="md" nowrap>DestT </td> |
---|
83 | <td class="mdname" nowrap> <em>destBitMask</em></td> |
---|
84 | </tr> |
---|
85 | <tr> |
---|
86 | <td></td> |
---|
87 | <td class="md">) </td> |
---|
88 | <td class="md" colspan="2"><code> [static]</code></td> |
---|
89 | </tr> |
---|
90 | |
---|
91 | </table> |
---|
92 | </td> |
---|
93 | </tr> |
---|
94 | </table> |
---|
95 | <table cellspacing=5 cellpadding=0 border=0> |
---|
96 | <tr> |
---|
97 | <td> |
---|
98 | |
---|
99 | </td> |
---|
100 | <td> |
---|
101 | |
---|
102 | <p> |
---|
103 | Takes a value with a given src bit mask, and produces another value with a desired bit mask. |
---|
104 | <p> |
---|
105 | <dl compact><dt><b>Remarks:</b></dt><dd>This routine is useful for colour conversion. </dd></dl> |
---|
106 | |
---|
107 | <p> |
---|
108 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00059">59</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
109 | <p> |
---|
110 | References <a class="el" href="OgreBitwise_8h-source.html#l00040">getBitShift()</a>. </td> |
---|
111 | </tr> |
---|
112 | </table> |
---|
113 | <a class="anchor" name="Ogre_1_1Bitwisee2" doxytag="Ogre::Bitwise::fixedToFixed" ></a><p> |
---|
114 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
115 | <tr> |
---|
116 | <td class="mdRow"> |
---|
117 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
118 | <tr> |
---|
119 | <td class="md" nowrap valign="top"> unsigned int Ogre::Bitwise::fixedToFixed </td> |
---|
120 | <td class="md" valign="top">( </td> |
---|
121 | <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a412">uint32</a> </td> |
---|
122 | <td class="mdname" nowrap> <em>value</em>, </td> |
---|
123 | </tr> |
---|
124 | <tr> |
---|
125 | <td class="md" nowrap align="right"></td> |
---|
126 | <td></td> |
---|
127 | <td class="md" nowrap>unsigned int </td> |
---|
128 | <td class="mdname" nowrap> <em>n</em>, </td> |
---|
129 | </tr> |
---|
130 | <tr> |
---|
131 | <td class="md" nowrap align="right"></td> |
---|
132 | <td></td> |
---|
133 | <td class="md" nowrap>unsigned int </td> |
---|
134 | <td class="mdname" nowrap> <em>p</em></td> |
---|
135 | </tr> |
---|
136 | <tr> |
---|
137 | <td></td> |
---|
138 | <td class="md">) </td> |
---|
139 | <td class="md" colspan="2"><code> [static]</code></td> |
---|
140 | </tr> |
---|
141 | |
---|
142 | </table> |
---|
143 | </td> |
---|
144 | </tr> |
---|
145 | </table> |
---|
146 | <table cellspacing=5 cellpadding=0 border=0> |
---|
147 | <tr> |
---|
148 | <td> |
---|
149 | |
---|
150 | </td> |
---|
151 | <td> |
---|
152 | |
---|
153 | <p> |
---|
154 | Convert N bit colour channel value to P bits. |
---|
155 | <p> |
---|
156 | It fills P bits with the bit pattern repeated. (this is /((1<<n)-1) in fixed point) |
---|
157 | <p> |
---|
158 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00084">84</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
159 | <p> |
---|
160 | References <a class="el" href="OgrePlatform_8h-source.html#l00199">Ogre::uint32</a>. </td> |
---|
161 | </tr> |
---|
162 | </table> |
---|
163 | <a class="anchor" name="Ogre_1_1Bitwisee4" doxytag="Ogre::Bitwise::fixedToFloat" ></a><p> |
---|
164 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
165 | <tr> |
---|
166 | <td class="mdRow"> |
---|
167 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
168 | <tr> |
---|
169 | <td class="md" nowrap valign="top"> float Ogre::Bitwise::fixedToFloat </td> |
---|
170 | <td class="md" valign="top">( </td> |
---|
171 | <td class="md" nowrap valign="top">unsigned </td> |
---|
172 | <td class="mdname" nowrap> <em>value</em>, </td> |
---|
173 | </tr> |
---|
174 | <tr> |
---|
175 | <td class="md" nowrap align="right"></td> |
---|
176 | <td></td> |
---|
177 | <td class="md" nowrap>unsigned int </td> |
---|
178 | <td class="mdname" nowrap> <em>bits</em></td> |
---|
179 | </tr> |
---|
180 | <tr> |
---|
181 | <td></td> |
---|
182 | <td class="md">) </td> |
---|
183 | <td class="md" colspan="2"><code> [static]</code></td> |
---|
184 | </tr> |
---|
185 | |
---|
186 | </table> |
---|
187 | </td> |
---|
188 | </tr> |
---|
189 | </table> |
---|
190 | <table cellspacing=5 cellpadding=0 border=0> |
---|
191 | <tr> |
---|
192 | <td> |
---|
193 | |
---|
194 | </td> |
---|
195 | <td> |
---|
196 | |
---|
197 | <p> |
---|
198 | Fixed point to float. |
---|
199 | <p> |
---|
200 | |
---|
201 | <p> |
---|
202 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00118">118</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. </td> |
---|
203 | </tr> |
---|
204 | </table> |
---|
205 | <a class="anchor" name="Ogre_1_1Bitwisee3" doxytag="Ogre::Bitwise::floatToFixed" ></a><p> |
---|
206 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
207 | <tr> |
---|
208 | <td class="mdRow"> |
---|
209 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
210 | <tr> |
---|
211 | <td class="md" nowrap valign="top"> unsigned int Ogre::Bitwise::floatToFixed </td> |
---|
212 | <td class="md" valign="top">( </td> |
---|
213 | <td class="md" nowrap valign="top">const float </td> |
---|
214 | <td class="mdname" nowrap> <em>value</em>, </td> |
---|
215 | </tr> |
---|
216 | <tr> |
---|
217 | <td class="md" nowrap align="right"></td> |
---|
218 | <td></td> |
---|
219 | <td class="md" nowrap>const unsigned int </td> |
---|
220 | <td class="mdname" nowrap> <em>bits</em></td> |
---|
221 | </tr> |
---|
222 | <tr> |
---|
223 | <td></td> |
---|
224 | <td class="md">) </td> |
---|
225 | <td class="md" colspan="2"><code> [static]</code></td> |
---|
226 | </tr> |
---|
227 | |
---|
228 | </table> |
---|
229 | </td> |
---|
230 | </tr> |
---|
231 | </table> |
---|
232 | <table cellspacing=5 cellpadding=0 border=0> |
---|
233 | <tr> |
---|
234 | <td> |
---|
235 | |
---|
236 | </td> |
---|
237 | <td> |
---|
238 | |
---|
239 | <p> |
---|
240 | Convert floating point colour channel value between 0.0 and 1.0 (otherwise clamped) to integer of a certain number of bits. |
---|
241 | <p> |
---|
242 | Works for any value of bits between 0 and 31. |
---|
243 | <p> |
---|
244 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00108">108</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. </td> |
---|
245 | </tr> |
---|
246 | </table> |
---|
247 | <a class="anchor" name="Ogre_1_1Bitwisee7" doxytag="Ogre::Bitwise::floatToHalf" ></a><p> |
---|
248 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
249 | <tr> |
---|
250 | <td class="mdRow"> |
---|
251 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
252 | <tr> |
---|
253 | <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a413">uint16</a> Ogre::Bitwise::floatToHalf </td> |
---|
254 | <td class="md" valign="top">( </td> |
---|
255 | <td class="md" nowrap valign="top">float </td> |
---|
256 | <td class="mdname1" valign="top" nowrap> <em>i</em> </td> |
---|
257 | <td class="md" valign="top"> ) </td> |
---|
258 | <td class="md" nowrap><code> [static]</code></td> |
---|
259 | </tr> |
---|
260 | |
---|
261 | </table> |
---|
262 | </td> |
---|
263 | </tr> |
---|
264 | </table> |
---|
265 | <table cellspacing=5 cellpadding=0 border=0> |
---|
266 | <tr> |
---|
267 | <td> |
---|
268 | |
---|
269 | </td> |
---|
270 | <td> |
---|
271 | |
---|
272 | <p> |
---|
273 | Convert a float32 to a float16 (NV_half_float) Courtesy of OpenEXR. |
---|
274 | <p> |
---|
275 | |
---|
276 | <p> |
---|
277 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00179">179</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
278 | <p> |
---|
279 | References <a class="el" href="OgreBitwise_8h-source.html#l00185">floatToHalfI()</a>, and <a class="el" href="OgrePlatform_8h-source.html#l00200">Ogre::uint16</a>. </td> |
---|
280 | </tr> |
---|
281 | </table> |
---|
282 | <a class="anchor" name="Ogre_1_1Bitwisee8" doxytag="Ogre::Bitwise::floatToHalfI" ></a><p> |
---|
283 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
284 | <tr> |
---|
285 | <td class="mdRow"> |
---|
286 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
287 | <tr> |
---|
288 | <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a413">uint16</a> Ogre::Bitwise::floatToHalfI </td> |
---|
289 | <td class="md" valign="top">( </td> |
---|
290 | <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a412">uint32</a> </td> |
---|
291 | <td class="mdname1" valign="top" nowrap> <em>i</em> </td> |
---|
292 | <td class="md" valign="top"> ) </td> |
---|
293 | <td class="md" nowrap><code> [static]</code></td> |
---|
294 | </tr> |
---|
295 | |
---|
296 | </table> |
---|
297 | </td> |
---|
298 | </tr> |
---|
299 | </table> |
---|
300 | <table cellspacing=5 cellpadding=0 border=0> |
---|
301 | <tr> |
---|
302 | <td> |
---|
303 | |
---|
304 | </td> |
---|
305 | <td> |
---|
306 | |
---|
307 | <p> |
---|
308 | Converts float in uint32 format to a a half in uint16 format. |
---|
309 | <p> |
---|
310 | |
---|
311 | <p> |
---|
312 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00185">185</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
313 | <p> |
---|
314 | References <a class="el" href="OgrePlatform_8h-source.html#l00200">Ogre::uint16</a>, and <a class="el" href="OgrePlatform_8h-source.html#l00199">Ogre::uint32</a>. |
---|
315 | <p> |
---|
316 | Referenced by <a class="el" href="OgreBitwise_8h-source.html#l00179">floatToHalf()</a>. </td> |
---|
317 | </tr> |
---|
318 | </table> |
---|
319 | <a class="anchor" name="Ogre_1_1Bitwisee0" doxytag="Ogre::Bitwise::getBitShift" ></a><p> |
---|
320 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
321 | <tr> |
---|
322 | <td class="mdRow"> |
---|
323 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
324 | <tr> |
---|
325 | <td class="md" colspan="4"> |
---|
326 | template<typename T> </td> |
---|
327 | </tr> |
---|
328 | <tr> |
---|
329 | <td class="md" nowrap valign="top"> FORCEINLINE unsigned int Ogre::Bitwise::getBitShift </td> |
---|
330 | <td class="md" valign="top">( </td> |
---|
331 | <td class="md" nowrap valign="top">T </td> |
---|
332 | <td class="mdname1" valign="top" nowrap> <em>mask</em> </td> |
---|
333 | <td class="md" valign="top"> ) </td> |
---|
334 | <td class="md" nowrap><code> [static]</code></td> |
---|
335 | </tr> |
---|
336 | |
---|
337 | </table> |
---|
338 | </td> |
---|
339 | </tr> |
---|
340 | </table> |
---|
341 | <table cellspacing=5 cellpadding=0 border=0> |
---|
342 | <tr> |
---|
343 | <td> |
---|
344 | |
---|
345 | </td> |
---|
346 | <td> |
---|
347 | |
---|
348 | <p> |
---|
349 | Returns the number of bits a pattern must be shifted right by to remove right-hand zeroes. |
---|
350 | <p> |
---|
351 | |
---|
352 | <p> |
---|
353 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00040">40</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
354 | <p> |
---|
355 | References <a class="el" href="OgrePlatform_8h-source.html#l00074">FORCEINLINE</a>. |
---|
356 | <p> |
---|
357 | Referenced by <a class="el" href="OgreBitwise_8h-source.html#l00059">convertBitPattern()</a>. </td> |
---|
358 | </tr> |
---|
359 | </table> |
---|
360 | <a class="anchor" name="Ogre_1_1Bitwisee9" doxytag="Ogre::Bitwise::halfToFloat" ></a><p> |
---|
361 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
362 | <tr> |
---|
363 | <td class="mdRow"> |
---|
364 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
365 | <tr> |
---|
366 | <td class="md" nowrap valign="top"> float Ogre::Bitwise::halfToFloat </td> |
---|
367 | <td class="md" valign="top">( </td> |
---|
368 | <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a413">uint16</a> </td> |
---|
369 | <td class="mdname1" valign="top" nowrap> <em>y</em> </td> |
---|
370 | <td class="md" valign="top"> ) </td> |
---|
371 | <td class="md" nowrap><code> [static]</code></td> |
---|
372 | </tr> |
---|
373 | |
---|
374 | </table> |
---|
375 | </td> |
---|
376 | </tr> |
---|
377 | </table> |
---|
378 | <table cellspacing=5 cellpadding=0 border=0> |
---|
379 | <tr> |
---|
380 | <td> |
---|
381 | |
---|
382 | </td> |
---|
383 | <td> |
---|
384 | |
---|
385 | <p> |
---|
386 | Convert a float16 (NV_half_float) to a float32 Courtesy of OpenEXR. |
---|
387 | <p> |
---|
388 | |
---|
389 | <p> |
---|
390 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00228">228</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
391 | <p> |
---|
392 | References <a class="el" href="OgreBitwise_8h-source.html#l00236">halfToFloatI()</a>, <a class="el" href="OgrePlatform_8h-source.html#l00200">Ogre::uint16</a>, and <a class="el" href="OgrePlatform_8h-source.html#l00199">Ogre::uint32</a>. </td> |
---|
393 | </tr> |
---|
394 | </table> |
---|
395 | <a class="anchor" name="Ogre_1_1Bitwisee10" doxytag="Ogre::Bitwise::halfToFloatI" ></a><p> |
---|
396 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
397 | <tr> |
---|
398 | <td class="mdRow"> |
---|
399 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
400 | <tr> |
---|
401 | <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a412">uint32</a> Ogre::Bitwise::halfToFloatI </td> |
---|
402 | <td class="md" valign="top">( </td> |
---|
403 | <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a413">uint16</a> </td> |
---|
404 | <td class="mdname1" valign="top" nowrap> <em>y</em> </td> |
---|
405 | <td class="md" valign="top"> ) </td> |
---|
406 | <td class="md" nowrap><code> [static]</code></td> |
---|
407 | </tr> |
---|
408 | |
---|
409 | </table> |
---|
410 | </td> |
---|
411 | </tr> |
---|
412 | </table> |
---|
413 | <table cellspacing=5 cellpadding=0 border=0> |
---|
414 | <tr> |
---|
415 | <td> |
---|
416 | |
---|
417 | </td> |
---|
418 | <td> |
---|
419 | |
---|
420 | <p> |
---|
421 | Converts a half in uint16 format to a float in uint32 format. |
---|
422 | <p> |
---|
423 | |
---|
424 | <p> |
---|
425 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00236">236</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
426 | <p> |
---|
427 | References <a class="el" href="OgrePlatform_8h-source.html#l00200">Ogre::uint16</a>, and <a class="el" href="OgrePlatform_8h-source.html#l00199">Ogre::uint32</a>. |
---|
428 | <p> |
---|
429 | Referenced by <a class="el" href="OgreBitwise_8h-source.html#l00228">halfToFloat()</a>. </td> |
---|
430 | </tr> |
---|
431 | </table> |
---|
432 | <a class="anchor" name="Ogre_1_1Bitwisee6" doxytag="Ogre::Bitwise::intRead" ></a><p> |
---|
433 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
434 | <tr> |
---|
435 | <td class="mdRow"> |
---|
436 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
437 | <tr> |
---|
438 | <td class="md" nowrap valign="top"> unsigned int Ogre::Bitwise::intRead </td> |
---|
439 | <td class="md" valign="top">( </td> |
---|
440 | <td class="md" nowrap valign="top">const void * </td> |
---|
441 | <td class="mdname" nowrap> <em>src</em>, </td> |
---|
442 | </tr> |
---|
443 | <tr> |
---|
444 | <td class="md" nowrap align="right"></td> |
---|
445 | <td></td> |
---|
446 | <td class="md" nowrap>int </td> |
---|
447 | <td class="mdname" nowrap> <em>n</em></td> |
---|
448 | </tr> |
---|
449 | <tr> |
---|
450 | <td></td> |
---|
451 | <td class="md">) </td> |
---|
452 | <td class="md" colspan="2"><code> [static]</code></td> |
---|
453 | </tr> |
---|
454 | |
---|
455 | </table> |
---|
456 | </td> |
---|
457 | </tr> |
---|
458 | </table> |
---|
459 | <table cellspacing=5 cellpadding=0 border=0> |
---|
460 | <tr> |
---|
461 | <td> |
---|
462 | |
---|
463 | </td> |
---|
464 | <td> |
---|
465 | |
---|
466 | <p> |
---|
467 | Read a n*8 bits integer value to memory in native endian. |
---|
468 | <p> |
---|
469 | |
---|
470 | <p> |
---|
471 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00154">154</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
472 | <p> |
---|
473 | References <a class="el" href="OgrePlatform_8h-source.html#l00200">Ogre::uint16</a>, <a class="el" href="OgrePlatform_8h-source.html#l00199">Ogre::uint32</a>, and <a class="el" href="OgrePlatform_8h-source.html#l00201">Ogre::uint8</a>. </td> |
---|
474 | </tr> |
---|
475 | </table> |
---|
476 | <a class="anchor" name="Ogre_1_1Bitwisee5" doxytag="Ogre::Bitwise::intWrite" ></a><p> |
---|
477 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
478 | <tr> |
---|
479 | <td class="mdRow"> |
---|
480 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
481 | <tr> |
---|
482 | <td class="md" nowrap valign="top"> void Ogre::Bitwise::intWrite </td> |
---|
483 | <td class="md" valign="top">( </td> |
---|
484 | <td class="md" nowrap valign="top">const void * </td> |
---|
485 | <td class="mdname" nowrap> <em>dest</em>, </td> |
---|
486 | </tr> |
---|
487 | <tr> |
---|
488 | <td class="md" nowrap align="right"></td> |
---|
489 | <td></td> |
---|
490 | <td class="md" nowrap>const int </td> |
---|
491 | <td class="mdname" nowrap> <em>n</em>, </td> |
---|
492 | </tr> |
---|
493 | <tr> |
---|
494 | <td class="md" nowrap align="right"></td> |
---|
495 | <td></td> |
---|
496 | <td class="md" nowrap>const unsigned int </td> |
---|
497 | <td class="mdname" nowrap> <em>value</em></td> |
---|
498 | </tr> |
---|
499 | <tr> |
---|
500 | <td></td> |
---|
501 | <td class="md">) </td> |
---|
502 | <td class="md" colspan="2"><code> [static]</code></td> |
---|
503 | </tr> |
---|
504 | |
---|
505 | </table> |
---|
506 | </td> |
---|
507 | </tr> |
---|
508 | </table> |
---|
509 | <table cellspacing=5 cellpadding=0 border=0> |
---|
510 | <tr> |
---|
511 | <td> |
---|
512 | |
---|
513 | </td> |
---|
514 | <td> |
---|
515 | |
---|
516 | <p> |
---|
517 | Write a n*8 bits integer value to memory in native endian. |
---|
518 | <p> |
---|
519 | |
---|
520 | <p> |
---|
521 | Definition at line <a class="el" href="OgreBitwise_8h-source.html#l00126">126</a> of file <a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>. |
---|
522 | <p> |
---|
523 | References <a class="el" href="OgrePlatform_8h-source.html#l00200">Ogre::uint16</a>, <a class="el" href="OgrePlatform_8h-source.html#l00199">Ogre::uint32</a>, and <a class="el" href="OgrePlatform_8h-source.html#l00201">Ogre::uint8</a>. </td> |
---|
524 | </tr> |
---|
525 | </table> |
---|
526 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
527 | <li><a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a></ul> |
---|
528 | <hr> |
---|
529 | <p> |
---|
530 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
531 | <!--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/> |
---|
532 | 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/> |
---|
533 | <!--/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#"> |
---|
534 | <Work rdf:about=""> |
---|
535 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
536 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
537 | </Work> |
---|
538 | <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> --> |
---|
539 | |
---|
540 | Last modified Sun Feb 12 13:00:09 2006 |
---|
541 | </p> |
---|
542 | </body> |
---|
543 | </html> |
---|