PxRepXSimpleType.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 
14 
15 #ifndef PX_REPX_SIMPLE_TYPE_H
16 #define PX_REPX_SIMPLE_TYPE_H
17 
23 #include "cooking/PxCooking.h"
24 #include "common/PxStringTable.h"
26 
27 #ifndef PX_DOXYGEN
28 namespace physx
29 {
30 #endif
31 
35  struct PxRepXObject
36  {
41  const char* typeName;
42 
46  const void* serializable;
47 
52  PxRepXObject( const char* inTypeName = "", const void* inSerializable = NULL, const PxSerialObjectId inId = 0 )
53  : typeName( inTypeName )
54  , serializable( inSerializable )
55  , id( inId )
56  {
57  }
58  bool isValid() const { return serializable != NULL; }
59  };
60 
69  {
73  PxRepXInstantiationArgs( PxPhysics& inPhysics, PxCooking* inCooking = NULL , PxStringTable* inStringTable = NULL )
74  : physics( inPhysics )
75  , cooker( inCooking )
76  , stringTable( inStringTable )
77  {
78  }
79 
81  };
82 
83 
84 #ifndef PX_DOXYGEN
85 } // namespace physx
86 #endif
87 
89 #endif


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com