Panda3D
Loading...
Searching...
No Matches
physxGroupsMask.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxGroupsMask.I
10 * @author enn0x
11 * @date 2009-10-21
12 */
13
14/**
15 *
16 */
17INLINE PhysxGroupsMask::
18PhysxGroupsMask() {
19
20 _mask.bits0 = 0x00000000;
21 _mask.bits1 = 0x00000000;
22 _mask.bits2 = 0x00000000;
23 _mask.bits3 = 0x00000000;
24}
25
26/**
27 *
28 */
29INLINE PhysxGroupsMask::
30PhysxGroupsMask(NxGroupsMask mask)
31 : _mask(mask) {
32
33}
34
35/**
36 *
37 */
38INLINE PhysxGroupsMask::
39~PhysxGroupsMask() {
40
41}
42
43/**
44 *
45 */
46INLINE NxGroupsMask PhysxGroupsMask::
47get_mask() const {
48
49 return _mask;
50}
51
52/**
53 *
54 */
55INLINE void PhysxGroupsMask::
56set_mask(NxGroupsMask mask) {
57
58 _mask = mask;
59}
60
61/**
62 *
63 */
64INLINE unsigned int PhysxGroupsMask::
65get_bits0() const {
66
67 return _mask.bits0;
68}
69
70/**
71 *
72 */
73INLINE void PhysxGroupsMask::
74set_bits0(unsigned int bits) {
75
76 _mask.bits0 = (NxU32) bits;
77}
78
79/**
80 *
81 */
82INLINE unsigned int PhysxGroupsMask::
83get_bits1() const {
84
85 return _mask.bits1;
86}
87
88/**
89 *
90 */
91INLINE void PhysxGroupsMask::
92set_bits1(unsigned int bits) {
93
94 _mask.bits1 = (NxU32) bits;
95}
96
97/**
98 *
99 */
100INLINE unsigned int PhysxGroupsMask::
101get_bits2() const {
102
103 return _mask.bits2;
104}
105
106/**
107 *
108 */
109INLINE void PhysxGroupsMask::
110set_bits2(unsigned int bits) {
111
112 _mask.bits2 = (NxU32) bits;
113}
114
115/**
116 *
117 */
118INLINE unsigned int PhysxGroupsMask::
119get_bits3() const {
120
121 return _mask.bits3;
122}
123
124/**
125 *
126 */
127INLINE void PhysxGroupsMask::
128set_bits3(unsigned int bits) {
129
130 _mask.bits3 = (NxU32) bits;
131}