Panda3D
physxGroupsMask.I
1 // Filename: physxGroupsMask.cxx
2 // Created by: enn0x (21Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: PhysxGroupsMask::Constructor
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE PhysxGroupsMask::
22 PhysxGroupsMask() {
23 
24  _mask.bits0 = 0x00000000;
25  _mask.bits1 = 0x00000000;
26  _mask.bits2 = 0x00000000;
27  _mask.bits3 = 0x00000000;
28 }
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: PhysxGroupsMask::Constructor
32 // Access: Public
33 // Description:
34 ////////////////////////////////////////////////////////////////////
35 INLINE PhysxGroupsMask::
36 PhysxGroupsMask(NxGroupsMask mask)
37  : _mask(mask) {
38 
39 }
40 
41 ////////////////////////////////////////////////////////////////////
42 // Function: PhysxGroupsMask::Destructor
43 // Access: Published
44 // Description:
45 ////////////////////////////////////////////////////////////////////
46 INLINE PhysxGroupsMask::
47 ~PhysxGroupsMask() {
48 
49 }
50 
51 ////////////////////////////////////////////////////////////////////
52 // Function: PhysxGroupsMask::get_mask
53 // Access: Public
54 // Description:
55 ////////////////////////////////////////////////////////////////////
56 INLINE NxGroupsMask PhysxGroupsMask::
57 get_mask() const {
58 
59  return _mask;
60 }
61 
62 ////////////////////////////////////////////////////////////////////
63 // Function: PhysxGroupsMask::set_mask
64 // Access: Public
65 // Description:
66 ////////////////////////////////////////////////////////////////////
67 INLINE void PhysxGroupsMask::
68 set_mask(NxGroupsMask mask) {
69 
70  _mask = mask;
71 }
72 
73 ////////////////////////////////////////////////////////////////////
74 // Function: PhysxGroupsMask::get_bits0
75 // Access: Public
76 // Description:
77 ////////////////////////////////////////////////////////////////////
78 INLINE unsigned int PhysxGroupsMask::
79 get_bits0() const {
80 
81  return _mask.bits0;
82 }
83 
84 ////////////////////////////////////////////////////////////////////
85 // Function: PhysxGroupsMask::set_bits0
86 // Access: Public
87 // Description:
88 ////////////////////////////////////////////////////////////////////
89 INLINE void PhysxGroupsMask::
90 set_bits0(unsigned int bits) {
91 
92  _mask.bits0 = (NxU32) bits;
93 }
94 
95 ////////////////////////////////////////////////////////////////////
96 // Function: PhysxGroupsMask::get_bits1
97 // Access: Public
98 // Description:
99 ////////////////////////////////////////////////////////////////////
100 INLINE unsigned int PhysxGroupsMask::
101 get_bits1() const {
102 
103  return _mask.bits1;
104 }
105 
106 ////////////////////////////////////////////////////////////////////
107 // Function: PhysxGroupsMask::set_bits1
108 // Access: Public
109 // Description:
110 ////////////////////////////////////////////////////////////////////
111 INLINE void PhysxGroupsMask::
112 set_bits1(unsigned int bits) {
113 
114  _mask.bits1 = (NxU32) bits;
115 }
116 
117 ////////////////////////////////////////////////////////////////////
118 // Function: PhysxGroupsMask::get_bits2
119 // Access: Public
120 // Description:
121 ////////////////////////////////////////////////////////////////////
122 INLINE unsigned int PhysxGroupsMask::
123 get_bits2() const {
124 
125  return _mask.bits2;
126 }
127 
128 ////////////////////////////////////////////////////////////////////
129 // Function: PhysxGroupsMask::set_bits2
130 // Access: Public
131 // Description:
132 ////////////////////////////////////////////////////////////////////
133 INLINE void PhysxGroupsMask::
134 set_bits2(unsigned int bits) {
135 
136  _mask.bits2 = (NxU32) bits;
137 }
138 
139 ////////////////////////////////////////////////////////////////////
140 // Function: PhysxGroupsMask::get_bits3
141 // Access: Public
142 // Description:
143 ////////////////////////////////////////////////////////////////////
144 INLINE unsigned int PhysxGroupsMask::
145 get_bits3() const {
146 
147  return _mask.bits3;
148 }
149 
150 ////////////////////////////////////////////////////////////////////
151 // Function: PhysxGroupsMask::set_bits3
152 // Access: Public
153 // Description:
154 ////////////////////////////////////////////////////////////////////
155 INLINE void PhysxGroupsMask::
156 set_bits3(unsigned int bits) {
157 
158  _mask.bits3 = (NxU32) bits;
159 }
160