OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::BooleanMask4 Class Reference

#include <OgreBooleanMask.h>

Public Types

enum  { MASK_NONE = 0, MASK_X = 1, NUM_MASKS = 2 }
 
enum  {
  MASK_NONE = 0, MASK_X = 1, MASK_Y = 2, MASK_XY = 3,
  MASK_Z = 4, MASK_XZ = 5, MASK_YZ = 6, MASK_XYZ = 7,
  MASK_W = 8, MASK_XW = 9, MASK_YW =10, MASK_XYW =11,
  MASK_ZW =12, MASK_XZW =13, MASK_YZW =14, MASK_XYZW =15,
  NUM_MASKS = 2
}
 
enum  {
  MASK_NONE = 0, MASK_X = 1, MASK_Y = 2, MASK_XY = 3,
  MASK_Z = 4, MASK_XZ = 5, MASK_YZ = 6, MASK_XYZ = 7,
  MASK_W = 8, MASK_XW = 9, MASK_YW =10, MASK_XYW =11,
  MASK_ZW =12, MASK_XZW =13, MASK_YZW =14, MASK_XYZW =15,
  NUM_MASKS = 2
}
 

Static Public Member Functions

static bool allBitsSet (bool mask0[1], bool mask1[1])
 Returns true if alls bit in mask0[i] and mask1[i] are set. More...
 
static bool allBitsSet (bool mask0[4], bool mask1[4])
 Returns true if alls bit in mask0[i] and mask1[i] are set. More...
 
static bool allBitsSet (bool mask0[4], bool mask1[4])
 Returns true if alls bit in mask0[i] and mask1[i] are set. More...
 
static ArrayMaskR getMask (bool x)
 
static ArrayMaskR getMask (bool booleans[1])
 
static ArrayMaskR getMask (bool x, bool y, bool z, bool w)
 
static ArrayMaskR getMask (bool x, bool y, bool z, bool w)
 
static ArrayMaskR getMask (bool booleans[ARRAY_PACKED_REALS])
 
static ArrayMaskR getMask (bool booleans[4])
 
static uint32 getScalarMask (ArrayMaskR mask)
 Converts a SIMD mask into a mask that fits in 32-bit number. More...
 
static uint32 getScalarMask (ArrayMaskR mask)
 Converts a SIMD mask into a mask that fits in 32-bit number. More...
 
static uint32 getScalarMask (ArrayMaskR mask)
 Converts a SIMD mask into a mask that fits in 32-bit number. More...
 
static uint32 getScalarMask (ArrayInt mask)
 
static uint32 getScalarMask (ArrayInt mask)
 

Static Private Attributes

static const ArrayMaskR mMasks [NUM_MASKS]
 

Detailed Description

Definition at line 38 of file C/OgreBooleanMask.h.

Member Enumeration Documentation

anonymous enum
Enumerator
MASK_NONE 
MASK_X 
NUM_MASKS 

Definition at line 41 of file C/OgreBooleanMask.h.

anonymous enum
Enumerator
MASK_NONE 
MASK_X 
MASK_Y 
MASK_XY 
MASK_Z 
MASK_XZ 
MASK_YZ 
MASK_XYZ 
MASK_W 
MASK_XW 
MASK_YW 
MASK_XYW 
MASK_ZW 
MASK_XZW 
MASK_YZW 
MASK_XYZW 
NUM_MASKS 

Definition at line 41 of file NEON/Single/OgreBooleanMask.h.

anonymous enum
Enumerator
MASK_NONE 
MASK_X 
MASK_Y 
MASK_XY 
MASK_Z 
MASK_XZ 
MASK_YZ 
MASK_XYZ 
MASK_W 
MASK_XW 
MASK_YW 
MASK_XYW 
MASK_ZW 
MASK_XZW 
MASK_YZW 
MASK_XYZW 
NUM_MASKS 

Definition at line 41 of file SSE2/Single/OgreBooleanMask.h.

Member Function Documentation

static bool Ogre::BooleanMask4::allBitsSet ( bool  mask0[1],
bool  mask1[1] 
)
inlinestatic

Returns true if alls bit in mask0[i] and mask1[i] are set.

static bool Ogre::BooleanMask4::allBitsSet ( bool  mask0[4],
bool  mask1[4] 
)
inlinestatic

Returns true if alls bit in mask0[i] and mask1[i] are set.

static bool Ogre::BooleanMask4::allBitsSet ( bool  mask0[4],
bool  mask1[4] 
)
inlinestatic

Returns true if alls bit in mask0[i] and mask1[i] are set.

static ArrayMaskR Ogre::BooleanMask4::getMask ( bool  x)
inlinestatic
static ArrayMaskR Ogre::BooleanMask4::getMask ( bool  booleans[1])
inlinestatic
static ArrayMaskR Ogre::BooleanMask4::getMask ( bool  x,
bool  y,
bool  z,
bool  w 
)
inlinestatic
static ArrayMaskR Ogre::BooleanMask4::getMask ( bool  x,
bool  y,
bool  z,
bool  w 
)
inlinestatic
static ArrayMaskR Ogre::BooleanMask4::getMask ( bool  booleans[ARRAY_PACKED_REALS])
inlinestatic
static ArrayMaskR Ogre::BooleanMask4::getMask ( bool  booleans[4])
inlinestatic
static uint32 Ogre::BooleanMask4::getScalarMask ( ArrayMaskR  mask)
inlinestatic

Converts a SIMD mask into a mask that fits in 32-bit number.

Remarks
IS_SET_MASK_X & co. to read the mask, since the result may need byteswapping in some architectures (i.e. SSE2)
static uint32 Ogre::BooleanMask4::getScalarMask ( ArrayMaskR  mask)
inlinestatic

Converts a SIMD mask into a mask that fits in 32-bit number.

Remarks
IS_SET_MASK_X & co. to read the mask, since the result may need byteswapping in some architectures (i.e. SSE2)
static uint32 Ogre::BooleanMask4::getScalarMask ( ArrayMaskR  mask)
inlinestatic

Converts a SIMD mask into a mask that fits in 32-bit number.

Remarks
IS_SET_MASK_X & co. to read the mask, since the result may need byteswapping in some architectures (i.e. SSE2)
static uint32 Ogre::BooleanMask4::getScalarMask ( ArrayInt  mask)
inlinestatic
static uint32 Ogre::BooleanMask4::getScalarMask ( ArrayInt  mask)
inlinestatic

Member Data Documentation

static const ArrayMaskR Ogre::BooleanMask4::mMasks
staticprivate

Definition at line 66 of file NEON/Single/OgreBooleanMask.h.


The documentation for this class was generated from the following file: