Main Page Class List Class Members

NvBlastExtPxCollisionBuilderImpl.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed to you
2 // under a form of NVIDIA software license agreement provided separately to you.
3 //
4 // Notice
5 // NVIDIA Corporation and its licensors retain all intellectual property and
6 // proprietary rights in and to this software and related documentation and
7 // any modifications thereto. Any use, reproduction, disclosure, or
8 // distribution of this software and related documentation without an express
9 // license agreement from NVIDIA Corporation is strictly prohibited.
10 //
11 // ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
12 // NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
13 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
14 // MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
15 //
16 // Information and code furnished is believed to be accurate and reliable.
17 // However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
18 // information or for any infringement of patents or other rights of third parties that may
19 // result from its use. No license is granted by implication or otherwise under any patent
20 // or patent rights of NVIDIA Corporation. Details are subject to change without notice.
21 // This code supersedes and replaces all information previously supplied.
22 // NVIDIA Corporation products are not authorized for use as critical
23 // components in life support devices or systems without express written approval of
24 // NVIDIA Corporation.
25 //
26 // Copyright (c) 2016-2020 NVIDIA Corporation. All rights reserved.
27
28
29 #ifndef NVBLASTEXTPXCOLLISIONBUILDERIMPL_H
30 #define NVBLASTEXTPXCOLLISIONBUILDERIMPL_H
31
32 #include "NvBlastExtPxCollisionBuilder.h"
33 #include "NvBlastExtAuthoringTypes.h"
34
35 namespace physx
36 {
37 class PxCooking;
38 class PxPhysicsInsertionCallback;
39 }
40 namespace Nv
41 {
42 namespace Blast
43 {
44
45 struct CollisionHullImpl : public CollisionHull
46 {
47 CollisionHullImpl() {};
48 CollisionHullImpl(const CollisionHull& hullToCopy);
49 ~CollisionHullImpl();
50 };
51
52 class ExtPxCollisionBuilderImpl : public ExtPxCollisionBuilder
53 {
54 public:
55 ExtPxCollisionBuilderImpl(physx::PxCooking* cooking,
56 physx::PxPhysicsInsertionCallback* insertionCallback) : mCooking(cooking), mInsertionCallback(insertionCallback) {}
57 virtual ~ExtPxCollisionBuilderImpl() {};
58 void release() override;
59 CollisionHull* buildCollisionGeometry(uint32_t verticesCount, const NvcVec3* vertexData) override;
60 void releaseCollisionHull(CollisionHull* hull) const override;
61
62 physx::PxConvexMesh* buildConvexMesh(const CollisionHull& hull) override;
63 void buildPhysicsChunks(uint32_t chunkCount, uint32_t* hullOffsets, CollisionHull** hulls,
64 ExtPxChunk* physicsChunks, ExtPxSubchunk* physicsSubchunks) override;
65 private:
66 physx::PxCooking* mCooking;
67 physx::PxPhysicsInsertionCallback* mInsertionCallback;
68 };
69
70 } // namespace Blast
71 } // namespace Nv
72
73
74 #endif // ifndef NVBLASTEXTPXCOLLISIONBUILDERIMPL_H
physx
Definition: NvBlastExtApexSharedParts.h:34
Nv::Blast::ExtPxChunk
Definition: NvBlastExtPxAsset.h:110
Nv::Blast::ExtPxCollisionBuilderImpl::ExtPxCollisionBuilderImpl
ExtPxCollisionBuilderImpl(physx::PxCooking *cooking, physx::PxPhysicsInsertionCallback *insertionCallback)
Definition: NvBlastExtPxCollisionBuilderImpl.h:55
NvBlastExtAuthoringTypes.h
Nv::Blast::ExtPxSubchunk
Definition: NvBlastExtPxAsset.h:98
Nv::Blast::CollisionHullImpl::CollisionHullImpl
CollisionHullImpl()
Definition: NvBlastExtPxCollisionBuilderImpl.h:47
Nv::Blast::ExtPxCollisionBuilder
Definition: NvBlastExtPxCollisionBuilder.h:52
Nv::Blast::CollisionHull
Definition: NvBlastExtAuthoringTypes.h:133
Nv::Blast::ExtPxCollisionBuilderImpl::~ExtPxCollisionBuilderImpl
virtual ~ExtPxCollisionBuilderImpl()
Definition: NvBlastExtPxCollisionBuilderImpl.h:57
Nv::Blast::CollisionHullImpl
Definition: NvBlastExtPxCollisionBuilderImpl.h:45
NvBlastExtPxCollisionBuilder.h
Nv
Definition: NvBlastArray.h:37
NvcVec3
Definition: NvCTypes.h:49
Nv::Blast::ExtPxCollisionBuilderImpl
Definition: NvBlastExtPxCollisionBuilderImpl.h:52