Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 1547

libogre1-devel-0.13.0-1mdk.i586.rpm

<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> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>Ogre::Bitwise  Class Reference</h1>Class for manipulating bit patterns. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreBitwise_8h-source.html">OgreBitwise.h</a>&gt;</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&lt;typename T&gt; FORCEINLINE unsigned int&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1Bitwise.html#Ogre_1_1Bitwised0">getBitShift</a> (T mask)</td></tr>
<tr><td>&nbsp;</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&lt;typename SrcT, typename DestT&gt; DestT&nbsp;</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>&nbsp;</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&lt;typename SrcT, typename DestT&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> DestT Ogre::Bitwise::convertBitPattern </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">SrcT&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>srcValue</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>SrcT&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>srcBitMask</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>DestT&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>destBitMask</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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&lt;typename T&gt; </td>
        </tr>
        <tr>
          <td class="md" nowrap valign="top"> FORCEINLINE unsigned int Ogre::Bitwise::getBitShift </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">T&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>mask</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </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 &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:16:50 2004
</p>
</body>
</html>