Panda3D
Loading...
Searching...
No Matches
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.
 
bool get_bit (unsigned int idx) const
 Returns true if the nth bit is set, false if it is cleared.
 
NxU32 get_mask () const
 
void output (std::ostream &out) const
 Writes the PhysxMask out as a list of ones and zeros.
 
void set_bit (unsigned int idx)
 Sets the nth bit on.
 

Static Public Member Functions

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

Detailed Description

32-bit bitmask class.

Definition at line 24 of file physxMask.h.

Constructor & Destructor Documentation

◆ PhysxMask()

PhysxMask::PhysxMask ( )
inline

Definition at line 17 of file physxMask.I.

◆ ~PhysxMask()

PhysxMask::~PhysxMask ( )
inline

Definition at line 26 of file physxMask.I.

Member Function Documentation

◆ all_off()

PhysxMask PhysxMask::all_off ( )
static

Returns a PhysxMask whose bits are all off.

Definition at line 30 of file physxMask.cxx.

◆ all_on()

PhysxMask PhysxMask::all_on ( )
static

Returns a PhysxMask whose bits are all on.

Definition at line 19 of file physxMask.cxx.

◆ 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 51 of file physxMask.cxx.

◆ 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 62 of file physxMask.cxx.

◆ get_mask()

NxU32 PhysxMask::get_mask ( ) const
inline

Definition at line 34 of file physxMask.I.

◆ output()

void PhysxMask::output ( std::ostream & out) const

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

Definition at line 72 of file physxMask.cxx.

◆ 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 41 of file physxMask.cxx.


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