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

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

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#ifndef NX_COLLISION_NXCONVEXSHAPE
2#define NX_COLLISION_NXCONVEXSHAPE
3/*----------------------------------------------------------------------------*\
4|
5|                                               Public Interface to NovodeX Technology
6|
7|                                                            www.novodex.com
8|
9\*----------------------------------------------------------------------------*/
10/** \addtogroup physics
11  @{
12*/
13
14#include "Nxp.h"
15#include "NxShape.h"
16
17class NxConvexShapeDesc;
18
19/**
20\brief Used to represent an instance of an #NxConvexMesh.
21
22<h3>Creation</h3>
23
24Example:
25
26\include NxConvexMesh_Create.cpp
27
28<h3>Visulizations:</h3>
29\li #NX_VISUALIZE_COLLISION_AABBS
30\li #NX_VISUALIZE_COLLISION_SHAPES
31\li #NX_VISUALIZE_COLLISION_AXES
32\li #NX_VISUALIZE_COLLISION_VNORMALS
33\li #NX_VISUALIZE_COLLISION_FNORMALS
34\li #NX_VISUALIZE_COLLISION_EDGES
35\li #NX_VISUALIZE_COLLISION_SPHERES
36
37@see NxConvexShapeDesc NxConvexMesh NxShape NxPhysicsSDK.createConvexMesh() NxActor.createShape()
38*/
39class NxConvexShape: public NxShape
40        {
41        public:
42
43        /**
44
45        \brief Save shape to desc.
46
47        \param[out] desc The descriptor used to retrieve the state of the object.
48
49        <b>Platform:</b>
50        \li PC SW: Yes
51        \li PPU  : Yes
52        \li PS3  : Yes
53        \li XB360: Yes
54
55        @see NxConvexShapeDesc
56        */
57        virtual void    saveToDesc(NxConvexShapeDesc& desc)     const = 0;
58
59        /**
60        \brief Retrieves the convex mesh data associated with this instance.
61
62        \return The convex mesh associated with this shape.
63
64        <b>Platform:</b>
65        \li PC SW: Yes
66        \li PPU  : Yes
67        \li PS3  : Yes
68        \li XB360: Yes
69
70        @see NxConvexMesh
71        */
72        virtual NxConvexMesh&           getConvexMesh() = 0;
73
74        /**
75        \brief Retrieves the convex mesh data associated with this instance.
76
77        Const version.
78
79        \return The convex mesh associated with this shape.
80
81        @see NxConvexMesh
82        */
83        virtual const NxConvexMesh&     getConvexMesh() const = 0;
84        };
85
86/** @} */
87#endif
88
89
90//AGCOPYRIGHTBEGIN
91///////////////////////////////////////////////////////////////////////////
92// Copyright © 2005 AGEIA Technologies.
93// All rights reserved. www.ageia.com
94///////////////////////////////////////////////////////////////////////////
95//AGCOPYRIGHTEND
96
Note: See TracBrowser for help on using the repository browser.