aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/PhysXVehicle
diff options
context:
space:
mode:
authorSheikh Dawood Abdul Ajees <[email protected]>2017-04-25 16:02:08 -0500
committerSheikh Dawood Abdul Ajees <[email protected]>2017-04-25 16:02:08 -0500
commitd11708e398c2f6377d9eac2b1f7248c62faab569 (patch)
tree5778e794690c046ab4b0205d8f764960a5af168b /PhysX_3.4/Source/PhysXVehicle
parentPhysX 3.4, APEX 1.4 patch release @21821222 (diff)
downloadphysx-3.4-d11708e398c2f6377d9eac2b1f7248c62faab569.tar.xz
physx-3.4-d11708e398c2f6377d9eac2b1f7248c62faab569.zip
PhysX 3.4, APEX 1.4 patch release @22017166
Diffstat (limited to 'PhysX_3.4/Source/PhysXVehicle')
-rw-r--r--PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.cpp2
-rw-r--r--PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.h13
2 files changed, 10 insertions, 5 deletions
diff --git a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.cpp b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.cpp
index 726fd5cf..0e92e2d6 100644
--- a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.cpp
+++ b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.cpp
@@ -194,7 +194,7 @@ namespace physx
, mDriveModel(PxVehicleDriveTankControlModel::eSTANDARD)
{}
- // explicit instantiations
+ // explicit template instantiations
template struct PxVehicleRepXSerializer<PxVehicleDrive4W>;
template struct PxVehicleRepXSerializer<PxVehicleDriveTank>;
template struct PxVehicleRepXSerializer<PxVehicleDriveNW>;
diff --git a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.h b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.h
index 2564ecf6..eabef1f3 100644
--- a/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.h
+++ b/PhysX_3.4/Source/PhysXVehicle/src/PxVehicleSerialization.h
@@ -31,15 +31,12 @@
#define PX_VEHICLE_SERIALIZATION_H
#include "extensions/PxRepXSimpleType.h"
+#include "SnRepXSerializerImpl.h"
namespace physx
{
class PxRepXSerializer;
class PxSerializationRegistry;
-
- template<typename TLiveType>
- struct RepXSerializerImpl;
-
class XmlReader;
class XmlMemoryAllocator;
class XmlWriter;
@@ -59,6 +56,14 @@ namespace physx
virtual TVehicleType* allocateObject( PxRepXInstantiationArgs& ) { return NULL; }
};
+#if PX_SUPPORT_EXTERN_TEMPLATE
+ // explicit template instantiation declarations
+ extern template struct PxVehicleRepXSerializer<PxVehicleDrive4W>;
+ extern template struct PxVehicleRepXSerializer<PxVehicleDriveTank>;
+ extern template struct PxVehicleRepXSerializer<PxVehicleDriveNW>;
+ extern template struct PxVehicleRepXSerializer<PxVehicleNoDrive>;
+#endif
+
}