Panda3D
Public Member Functions | Static Public Member Functions | List of all members
PhysxMask Class Reference

32-bit bitmask class. More...

#include "physxMask.h"

Public Member Functions

void clear_bit (unsigned int idx)
 Sets the nth bit off. More...
 
bool get_bit (unsigned int idx) const
 Returns true if the nth bit is set, false if it is cleared. More...
 
NxU32 get_mask () const
 
void output (ostream &out) const
 Writes the PhysxMask out as a list of ones and zeros. More...
 
void set_bit (unsigned int idx)
 Sets the nth bit on. More...
 

Static Public Member Functions

static PhysxMask all_off ()
 Returns a PhysxMask whose bits are all off. More...
 
static PhysxMask all_on ()
 Returns a PhysxMask whose bits are all on. More...
 

Detailed Description

32-bit bitmask class.

Definition at line 26 of file physxMask.h.

Member Function Documentation

◆ all_off()

PhysxMask PhysxMask::all_off ( )
static

Returns a PhysxMask whose bits are all off.

Definition at line 36 of file physxMask.cxx.

References set_bit().

Referenced by all_on().

◆ all_on()

PhysxMask PhysxMask::all_on ( )
static

Returns a PhysxMask whose bits are all on.

Definition at line 23 of file physxMask.cxx.

References all_off().

◆ clear_bit()

void PhysxMask::clear_bit ( unsigned int  idx)

Sets the nth bit off.

Index must be in the range [0, 31].

Definition at line 63 of file physxMask.cxx.

References get_bit().

Referenced by set_bit().

◆ get_bit()

bool PhysxMask::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, 31].

Definition at line 77 of file physxMask.cxx.

References output().

Referenced by clear_bit().

◆ output()

void PhysxMask::output ( ostream &  out) const

Writes the PhysxMask out as a list of ones and zeros.

Definition at line 90 of file physxMask.cxx.

Referenced by get_bit().

◆ set_bit()

void PhysxMask::set_bit ( unsigned int  idx)

Sets the nth bit on.

Index must be in the range [0, 31].

Definition at line 50 of file physxMask.cxx.

References clear_bit().

Referenced by all_off().


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