Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::Bitwise Class Reference

Class for manipulating bit patterns. More...

#include <OgreBitwise.h>

List of all members.

Public Types

typedef unsigned char BYTE
typedef unsigned short WORD
typedef unsigned long DWORD

Static Public Methods

int getBitShift (DWORD mask)
 Returns the number of bits a pattern must be shifted right by to remove right-hand zeroes. More...

void convertBitPattern (void *srcValue, void *srcBitMask, int srcBitCount, void *destValue, void *destBitMask, int destBitCount)
 Takes a value with a given src bit mask, and produces another value with a desired bit mask. More...


Detailed Description

Class for manipulating bit patterns.


Member Typedef Documentation

typedef unsigned char Ogre::Bitwise::BYTE
 

typedef unsigned long Ogre::Bitwise::DWORD
 

typedef unsigned short Ogre::Bitwise::WORD
 


Member Function Documentation

void Ogre::Bitwise::convertBitPattern void *    srcValue,
void *    srcBitMask,
int    srcBitCount,
void *    destValue,
void *    destBitMask,
int    destBitCount
[static]
 

Takes a value with a given src bit mask, and produces another value with a desired bit mask.

Remarks:
For flexibility, values are passed in as void pointers and the size of the bit patterns are determined by params. This routine is useful for colour conversion.

FORCEINLINE int Ogre::Bitwise::getBitShift DWORD    mask [static]
 

Returns the number of bits a pattern must be shifted right by to remove right-hand zeroes.

Copyright © 2002 by The OGRE Team