Panda3D

Loading...
Searching...
No Matches
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;
23 class PhysxConvexMeshDesc;
24 class PhysxTriangleMesh;
25 class PhysxTriangleMeshDesc;
26 class PhysxClothMesh;
27 class PhysxClothMeshDesc;
28 class PhysxSoftBodyMesh;
29 class PhysxSoftBodyMeshDesc;
30
31/**
32 *
33 */
34 class EXPCL_PANDAPHYSX PhysxKitchen {
35
36PUBLISHED:
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
Filename
The name of a file, such as a texture file or an Egg file.
Definition filename.h:44
PhysxClothMeshDesc
Definition physxClothMeshDesc.h:27
PhysxClothMesh
Definition physxClothMesh.h:25
PhysxConvexMeshDesc
Definition physxConvexMeshDesc.h:26
PhysxConvexMesh
A Convex Mesh.
Definition physxConvexMesh.h:26
PhysxKitchen::set_cooking_params
void set_cooking_params(float skinWidth, bool hintCollisionSpeed)
Sets two parameters which affect mesh cooking:
Definition physxKitchen.cxx:40
PhysxSoftBodyMeshDesc
Definition physxSoftBodyMeshDesc.h:25
PhysxSoftBodyMesh
Definition physxSoftBodyMesh.h:25
PhysxTriangleMeshDesc
Definition physxTriangleMeshDesc.h:26
PhysxTriangleMesh
Definition physxTriangleMesh.h:25
filename.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxKitchen.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.