<html> <head> <title>Ogre::Bitwise class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <!-- Generated by Doxygen 1.2.16 --> <center> <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">Compound 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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>Ogre::Bitwise Class Reference</h1>Class for manipulating bit patterns. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>></code> <p> <a href="classOgre_1_1Bitwise-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>template<typename T> FORCEINLINE unsigned int </td><td valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwised0">getBitShift</a> (T mask)</td></tr> <tr><td> </td><td><font size=-1><em>Returns the number of bits a pattern must be shifted right by to remove right-hand zeroes.</em> <a href="#Ogre_1_1Bitwised0"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>template<typename SrcT, typename DestT> DestT </td><td valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwised1">convertBitPattern</a> (SrcT srcValue, SrcT srcBitMask, DestT destBitMask)</td></tr> <tr><td> </td><td><font size=-1><em>Takes a value with a given src bit mask, and produces another value with a desired bit mask.</em> <a href="#Ogre_1_1Bitwised1"></a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Class for manipulating bit patterns. <p> <p> 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> <a name="Ogre_1_1Bitwised1" doxytag="Ogre::Bitwise::convertBitPattern"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" colspan="4"> template<typename SrcT, typename DestT> </td> </tr> <tr> <td class="md" nowrap valign="top"> DestT Ogre::Bitwise::convertBitPattern </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">SrcT </td> <td class="mdname" nowrap> <em>srcValue</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>SrcT </td> <td class="mdname" nowrap> <em>srcBitMask</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>DestT </td> <td class="mdname" nowrap> <em>destBitMask</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Takes a value with a given src bit mask, and produces another value with a desired bit mask. <p> <dl compact><dt><b> Remarks: </b><dd> This routine is useful for colour conversion. </dl> <p> 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>. <p> References <a class="el" href="OgreBitwise_8h-source.html#l00040">getBitShift</a>(). </td> </tr> </table> <a name="Ogre_1_1Bitwised0" doxytag="Ogre::Bitwise::getBitShift"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" colspan="4"> template<typename T> </td> </tr> <tr> <td class="md" nowrap valign="top"> FORCEINLINE unsigned int Ogre::Bitwise::getBitShift </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">T </td> <td class="mdname1" valign="top" nowrap> <em>mask</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns the number of bits a pattern must be shifted right by to remove right-hand zeroes. <p> <p> 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>. <p> References <a class="el" href="OgrePlatform_8h-source.html#l00078">FORCEINLINE</a>. <p> Referenced by <a class="el" href="OgreBitwise_8h-source.html#l00059">convertBitPattern</a>(). </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a></ul> <p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:16:50 2004 </p> </body> </html>