Panda3D
physxKitchen.h
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 physxKitchen.h
10  * @author enn0x
11  * @date 2009-10-12
12  */
13 
14 #ifndef PHYSXKITCHEN_H
15 #define PHYSXKITCHEN_H
16 
17 #include "pandabase.h"
18 #include "filename.h"
19 
20 #include "physx_includes.h"
21 
22 class PhysxConvexMesh;
24 class PhysxTriangleMesh;
26 class PhysxClothMesh;
27 class PhysxClothMeshDesc;
28 class PhysxSoftBodyMesh;
30 
31 /**
32  *
33  */
34 class EXPCL_PANDAPHYSX PhysxKitchen {
35 
36 PUBLISHED:
37  INLINE PhysxKitchen();
38  INLINE ~PhysxKitchen();
39 
40  void set_cooking_params(float skinWidth, bool hintCollisionSpeed);
41 
42  bool cook_convex_mesh(const PhysxConvexMeshDesc &meshDesc, const Filename &filename);
43  bool cook_triangle_mesh(const PhysxTriangleMeshDesc &meshDesc, const Filename &filename);
44  bool cook_cloth_mesh(const PhysxClothMeshDesc &meshDesc, const Filename &filename);
45  bool cook_soft_body_mesh(const PhysxSoftBodyMeshDesc &meshDesc, const Filename &filename);
46  bool cook_texcoords(const PhysxClothMeshDesc &meshDesc, const Filename &filename);
47 
48  PhysxConvexMesh *cook_convex_mesh(const PhysxConvexMeshDesc &meshDesc);
49  PhysxTriangleMesh *cook_triangle_mesh(const PhysxTriangleMeshDesc &meshDesc);
50  PhysxClothMesh *cook_cloth_mesh(const PhysxClothMeshDesc &meshDesc);
51  PhysxSoftBodyMesh *cook_soft_body_mesh(const PhysxSoftBodyMeshDesc &meshDesc);
52 
53 private:
54  NxCookingInterface *_cooking;
55 };
56 
57 #include "physxKitchen.I"
58 
59 #endif // PHYSXKITCHEN_H
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
A Convex Mesh.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.