Panda3D
|
00001 // Filename: physxSceneStats2.cxx 00002 // Created by: enn0x (20Oct09) 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: PhysxSceneStats2::get_num_stats 00018 // Access: Published 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE unsigned int PhysxSceneStats2:: 00022 get_num_stats() const { 00023 00024 return _ptr->numStats; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: PhysxSceneStats2::get_cur_value 00029 // Access: Published 00030 // Description: 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE int PhysxSceneStats2:: 00033 get_cur_value(unsigned int index) const { 00034 00035 nassertr(index < _ptr->numStats, -1); 00036 return _ptr->stats[index].curValue; 00037 } 00038 00039 //////////////////////////////////////////////////////////////////// 00040 // Function: PhysxSceneStats2::get_max_value 00041 // Access: Published 00042 // Description: 00043 //////////////////////////////////////////////////////////////////// 00044 INLINE int PhysxSceneStats2:: 00045 get_max_value(unsigned int index) const { 00046 00047 nassertr(index < _ptr->numStats, -1); 00048 return _ptr->stats[index].maxValue; 00049 } 00050 00051 //////////////////////////////////////////////////////////////////// 00052 // Function: PhysxSceneStats2::get_name 00053 // Access: Published 00054 // Description: 00055 //////////////////////////////////////////////////////////////////// 00056 INLINE const char * PhysxSceneStats2:: 00057 get_name(unsigned int index) const { 00058 00059 nassertr(index < _ptr->numStats, ""); 00060 return _ptr->stats[index].name; 00061 } 00062 00063 //////////////////////////////////////////////////////////////////// 00064 // Function: PhysxSceneStats2::get_parent 00065 // Access: Published 00066 // Description: 00067 //////////////////////////////////////////////////////////////////// 00068 INLINE unsigned int PhysxSceneStats2:: 00069 get_parent(unsigned int index) const { 00070 00071 nassertr(index < _ptr->numStats, 0); 00072 return _ptr->stats[index].parent; 00073 } 00074