Panda3D
 All Classes Functions Variables Enumerations
physxGroupsMask.I
00001 // Filename: physxGroupsMask.cxx
00002 // Created by:  enn0x (21Oct09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: PhysxGroupsMask::Constructor
00018 //       Access: Published
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE PhysxGroupsMask::
00022 PhysxGroupsMask() {
00023 
00024   _mask.bits0 = 0x00000000;
00025   _mask.bits1 = 0x00000000;
00026   _mask.bits2 = 0x00000000;
00027   _mask.bits3 = 0x00000000;
00028 }
00029 
00030 ////////////////////////////////////////////////////////////////////
00031 //     Function: PhysxGroupsMask::Constructor
00032 //       Access: Public
00033 //  Description:
00034 ////////////////////////////////////////////////////////////////////
00035 INLINE PhysxGroupsMask::
00036 PhysxGroupsMask(NxGroupsMask mask)
00037   : _mask(mask) {
00038 
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: PhysxGroupsMask::Destructor
00043 //       Access: Published
00044 //  Description:
00045 ////////////////////////////////////////////////////////////////////
00046 INLINE PhysxGroupsMask::
00047 ~PhysxGroupsMask() {
00048 
00049 }
00050 
00051 ////////////////////////////////////////////////////////////////////
00052 //     Function: PhysxGroupsMask::get_mask
00053 //       Access: Public
00054 //  Description: 
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE NxGroupsMask PhysxGroupsMask::
00057 get_mask() const {
00058 
00059   return _mask;
00060 }
00061 
00062 ////////////////////////////////////////////////////////////////////
00063 //     Function: PhysxGroupsMask::set_mask
00064 //       Access: Public
00065 //  Description: 
00066 ////////////////////////////////////////////////////////////////////
00067 INLINE void PhysxGroupsMask::
00068 set_mask(NxGroupsMask mask) {
00069 
00070   _mask = mask;
00071 }
00072 
00073 ////////////////////////////////////////////////////////////////////
00074 //     Function: PhysxGroupsMask::get_bits0
00075 //       Access: Public
00076 //  Description: 
00077 ////////////////////////////////////////////////////////////////////
00078 INLINE unsigned int PhysxGroupsMask::
00079 get_bits0() const {
00080 
00081   return _mask.bits0;
00082 }
00083 
00084 ////////////////////////////////////////////////////////////////////
00085 //     Function: PhysxGroupsMask::set_bits0
00086 //       Access: Public
00087 //  Description: 
00088 ////////////////////////////////////////////////////////////////////
00089 INLINE void PhysxGroupsMask::
00090 set_bits0(unsigned int bits) {
00091 
00092   _mask.bits0 = (NxU32) bits;
00093 }
00094 
00095 ////////////////////////////////////////////////////////////////////
00096 //     Function: PhysxGroupsMask::get_bits1
00097 //       Access: Public
00098 //  Description: 
00099 ////////////////////////////////////////////////////////////////////
00100 INLINE unsigned int PhysxGroupsMask::
00101 get_bits1() const {
00102 
00103   return _mask.bits1;
00104 }
00105 
00106 ////////////////////////////////////////////////////////////////////
00107 //     Function: PhysxGroupsMask::set_bits1
00108 //       Access: Public
00109 //  Description: 
00110 ////////////////////////////////////////////////////////////////////
00111 INLINE void PhysxGroupsMask::
00112 set_bits1(unsigned int bits) {
00113 
00114   _mask.bits1 = (NxU32) bits;
00115 }
00116 
00117 ////////////////////////////////////////////////////////////////////
00118 //     Function: PhysxGroupsMask::get_bits2
00119 //       Access: Public
00120 //  Description: 
00121 ////////////////////////////////////////////////////////////////////
00122 INLINE unsigned int PhysxGroupsMask::
00123 get_bits2() const {
00124 
00125   return _mask.bits2;
00126 }
00127 
00128 ////////////////////////////////////////////////////////////////////
00129 //     Function: PhysxGroupsMask::set_bits2
00130 //       Access: Public
00131 //  Description: 
00132 ////////////////////////////////////////////////////////////////////
00133 INLINE void PhysxGroupsMask::
00134 set_bits2(unsigned int bits) {
00135 
00136   _mask.bits2 = (NxU32) bits;
00137 }
00138 
00139 ////////////////////////////////////////////////////////////////////
00140 //     Function: PhysxGroupsMask::get_bits3
00141 //       Access: Public
00142 //  Description: 
00143 ////////////////////////////////////////////////////////////////////
00144 INLINE unsigned int PhysxGroupsMask::
00145 get_bits3() const {
00146 
00147   return _mask.bits3;
00148 }
00149 
00150 ////////////////////////////////////////////////////////////////////
00151 //     Function: PhysxGroupsMask::set_bits3
00152 //       Access: Public
00153 //  Description: 
00154 ////////////////////////////////////////////////////////////////////
00155 INLINE void PhysxGroupsMask::
00156 set_bits3(unsigned int bits) {
00157 
00158   _mask.bits3 = (NxU32) bits;
00159 }
00160 
 All Classes Functions Variables Enumerations