Panda3D
|
128-bit bitmask class. More...
#include "physxGroupsMask.h"
Public Member Functions | |
PhysxGroupsMask (NxGroupsMask mask) | |
void | clear_bit (unsigned int idx) |
Sets the nth bit off. | |
bool | get_bit (unsigned int idx) const |
Returns true if the nth bit is set, false if it is cleared. | |
unsigned int | get_bits0 () const |
unsigned int | get_bits1 () const |
unsigned int | get_bits2 () const |
unsigned int | get_bits3 () const |
NxGroupsMask | get_mask () const |
void | output (ostream &out) const |
Writes the PhysxGroupsMask out as a list of ones and zeros. | |
void | set_bit (unsigned int idx) |
Sets the nth bit on. | |
void | set_bits0 (unsigned int bits) |
void | set_bits1 (unsigned int bits) |
void | set_bits2 (unsigned int bits) |
void | set_bits3 (unsigned int bits) |
void | set_mask (NxGroupsMask mask) |
Static Public Member Functions | |
static PhysxGroupsMask | all_off () |
Returns a PhysxGroupsMask whose bits are all off. | |
static PhysxGroupsMask | all_on () |
Returns a PhysxGroupsMask whose bits are all on. | |
Public Attributes | |
NxGroupsMask | _mask |
128-bit bitmask class.
Definition at line 26 of file physxGroupsMask.h.
PhysxGroupsMask PhysxGroupsMask::all_off | ( | ) | [static] |
Returns a PhysxGroupsMask whose bits are all off.
Definition at line 39 of file physxGroupsMask.cxx.
PhysxGroupsMask PhysxGroupsMask::all_on | ( | ) | [static] |
Returns a PhysxGroupsMask whose bits are all on.
Definition at line 23 of file physxGroupsMask.cxx.
void PhysxGroupsMask::clear_bit | ( | unsigned int | idx | ) |
Sets the nth bit off.
Index must be in the range [0, 127].
Definition at line 85 of file physxGroupsMask.cxx.
bool PhysxGroupsMask::get_bit | ( | unsigned int | idx | ) | const |
Returns true if the nth bit is set, false if it is cleared.
Index must be in the range [0, 127].
Definition at line 113 of file physxGroupsMask.cxx.
void PhysxGroupsMask::output | ( | ostream & | out | ) | const |
Writes the PhysxGroupsMask out as a list of ones and zeros.
Definition at line 140 of file physxGroupsMask.cxx.
void PhysxGroupsMask::set_bit | ( | unsigned int | idx | ) |
Sets the nth bit on.
Index must be in the range [0, 127].
Definition at line 58 of file physxGroupsMask.cxx.