Panda3D
|
00001 // Filename: physxKitchen.h 00002 // Created by: enn0x (12Oct09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PHYSXKITCHEN_H 00016 #define PHYSXKITCHEN_H 00017 00018 #include "pandabase.h" 00019 #include "filename.h" 00020 00021 #include "physx_includes.h" 00022 00023 class PhysxConvexMesh; 00024 class PhysxConvexMeshDesc; 00025 class PhysxTriangleMesh; 00026 class PhysxTriangleMeshDesc; 00027 class PhysxClothMesh; 00028 class PhysxClothMeshDesc; 00029 class PhysxSoftBodyMesh; 00030 class PhysxSoftBodyMeshDesc; 00031 00032 //////////////////////////////////////////////////////////////////// 00033 // Class : PhysxKitchen 00034 // Description : 00035 //////////////////////////////////////////////////////////////////// 00036 class EXPCL_PANDAPHYSX PhysxKitchen { 00037 00038 PUBLISHED: 00039 INLINE PhysxKitchen(); 00040 INLINE ~PhysxKitchen(); 00041 00042 void set_cooking_params(float skinWidth, bool hintCollisionSpeed); 00043 00044 bool cook_convex_mesh(const PhysxConvexMeshDesc &meshDesc, const Filename &filename); 00045 bool cook_triangle_mesh(const PhysxTriangleMeshDesc &meshDesc, const Filename &filename); 00046 bool cook_cloth_mesh(const PhysxClothMeshDesc &meshDesc, const Filename &filename); 00047 bool cook_soft_body_mesh(const PhysxSoftBodyMeshDesc &meshDesc, const Filename &filename); 00048 bool cook_texcoords(const PhysxClothMeshDesc &meshDesc, const Filename &filename); 00049 00050 PhysxConvexMesh *cook_convex_mesh(const PhysxConvexMeshDesc &meshDesc); 00051 PhysxTriangleMesh *cook_triangle_mesh(const PhysxTriangleMeshDesc &meshDesc); 00052 PhysxClothMesh *cook_cloth_mesh(const PhysxClothMeshDesc &meshDesc); 00053 PhysxSoftBodyMesh *cook_soft_body_mesh(const PhysxSoftBodyMeshDesc &meshDesc); 00054 00055 private: 00056 NxCookingInterface *_cooking; 00057 }; 00058 00059 #include "physxKitchen.I" 00060 00061 #endif // PHYSXKITCHEN_H