Panda3D
physxKitchen.h
1 // Filename: physxKitchen.h
2 // Created by: enn0x (12Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXKITCHEN_H
16 #define PHYSXKITCHEN_H
17 
18 #include "pandabase.h"
19 #include "filename.h"
20 
21 #include "physx_includes.h"
22 
23 class PhysxConvexMesh;
25 class PhysxTriangleMesh;
27 class PhysxClothMesh;
28 class PhysxClothMeshDesc;
29 class PhysxSoftBodyMesh;
31 
32 ////////////////////////////////////////////////////////////////////
33 // Class : PhysxKitchen
34 // Description :
35 ////////////////////////////////////////////////////////////////////
36 class EXPCL_PANDAPHYSX PhysxKitchen {
37 
38 PUBLISHED:
39  INLINE PhysxKitchen();
40  INLINE ~PhysxKitchen();
41 
42  void set_cooking_params(float skinWidth, bool hintCollisionSpeed);
43 
44  bool cook_convex_mesh(const PhysxConvexMeshDesc &meshDesc, const Filename &filename);
45  bool cook_triangle_mesh(const PhysxTriangleMeshDesc &meshDesc, const Filename &filename);
46  bool cook_cloth_mesh(const PhysxClothMeshDesc &meshDesc, const Filename &filename);
47  bool cook_soft_body_mesh(const PhysxSoftBodyMeshDesc &meshDesc, const Filename &filename);
48  bool cook_texcoords(const PhysxClothMeshDesc &meshDesc, const Filename &filename);
49 
50  PhysxConvexMesh *cook_convex_mesh(const PhysxConvexMeshDesc &meshDesc);
51  PhysxTriangleMesh *cook_triangle_mesh(const PhysxTriangleMeshDesc &meshDesc);
52  PhysxClothMesh *cook_cloth_mesh(const PhysxClothMeshDesc &meshDesc);
53  PhysxSoftBodyMesh *cook_soft_body_mesh(const PhysxSoftBodyMeshDesc &meshDesc);
54 
55 private:
56  NxCookingInterface *_cooking;
57 };
58 
59 #include "physxKitchen.I"
60 
61 #endif // PHYSXKITCHEN_H
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
A Convex Mesh.