source: GTP/trunk/App/Games/Jungle_Rumble/src/physic/physics/include/NxSceneStats.h @ 1378

Revision 1378, 1.9 KB checked in by giegl, 18 years ago (diff)

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#ifndef NX_SCENE_STATS
2#define NX_SCENE_STATS
3
4/*----------------------------------------------------------------------------*\
5|
6|                                               Public Interface to NovodeX Technology
7|
8|                                                            www.novodex.com
9|
10\*----------------------------------------------------------------------------*/
11/** \addtogroup physics
12  @{
13*/
14
15#include "Nxp.h"
16
17/**
18\brief Class used to retrieve statistics for a scene.
19
20<b>Platform:</b>
21\li PC SW: Yes
22\li PPU  : No
23\li PS3  : Yes
24\li XB360: Yes
25*/
26class NxSceneStats
27        {
28        public:
29        //collisions:
30        NxU32   numContacts;
31        NxU32   maxContacts;
32        NxU32   numPairs;
33        NxU32   maxPairs;
34        //sleep:
35        NxU32   numDynamicActorsInAwakeGroups;
36        NxU32   maxDynamicActorsInAwakeGroups;
37        //solver:
38        NxU32   numAxisConstraints;
39        NxU32   maxAxisConstraints;
40        NxU32   numSolverBodies;
41        NxU32   maxSolverBodies;
42        //scene:
43        NxU32   numActors;
44        NxU32   maxActors;
45        NxU32   numDynamicActors;
46        NxU32   maxDynamicActors;
47        NxU32   numStaticShapes;
48        NxU32   maxStaticShapes;
49        NxU32   numDynamicShapes;
50        NxU32   maxDynamicShapes;
51        NxU32   numJoints;
52        NxU32   maxJoints;
53
54
55        NxSceneStats()
56                {
57                reset();
58                }
59
60        /**
61        \brief Zeros all members.
62        */
63        void reset()
64                {
65                numContacts = 0;
66                maxContacts = 0;
67                numPairs = 0;
68                maxPairs = 0;
69                numDynamicActorsInAwakeGroups = 0;
70                maxDynamicActorsInAwakeGroups = 0;
71                numAxisConstraints = 0;
72                maxAxisConstraints = 0;
73                numSolverBodies = 0;
74                maxSolverBodies = 0;
75                numActors = 0;
76                maxActors = 0;
77                numDynamicActors = 0;
78                maxDynamicActors = 0;
79                numStaticShapes = 0;
80                maxStaticShapes = 0;
81                numDynamicShapes = 0;
82                maxDynamicShapes = 0;
83                numJoints = 0;
84                maxJoints = 0;
85                }
86        };
87
88/** @} */
89#endif
90
91
92//AGCOPYRIGHTBEGIN
93///////////////////////////////////////////////////////////////////////////
94// Copyright © 2005 AGEIA Technologies.
95// All rights reserved. www.ageia.com
96///////////////////////////////////////////////////////////////////////////
97//AGCOPYRIGHTEND
98
Note: See TracBrowser for help on using the repository browser.