Panda3D
Loading...
Searching...
No Matches
physxSceneStats2.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 physxSceneStats2.I
10 * @author enn0x
11 * @date 2009-10-20
12 */
13
14/**
15 *
16 */
17INLINE unsigned int PhysxSceneStats2::
18get_num_stats() const {
19
20 return _ptr->numStats;
21}
22
23/**
24 *
25 */
26INLINE int PhysxSceneStats2::
27get_cur_value(unsigned int index) const {
28
29 nassertr(index < _ptr->numStats, -1);
30 return _ptr->stats[index].curValue;
31}
32
33/**
34 *
35 */
36INLINE int PhysxSceneStats2::
37get_max_value(unsigned int index) const {
38
39 nassertr(index < _ptr->numStats, -1);
40 return _ptr->stats[index].maxValue;
41}
42
43/**
44 *
45 */
46INLINE const char * PhysxSceneStats2::
47get_name(unsigned int index) const {
48
49 nassertr(index < _ptr->numStats, "");
50 return _ptr->stats[index].name;
51}
52
53/**
54 *
55 */
56INLINE unsigned int PhysxSceneStats2::
57get_parent(unsigned int index) const {
58
59 nassertr(index < _ptr->numStats, 0);
60 return _ptr->stats[index].parent;
61}