diff options
| author | git perforce import user <a@b> | 2016-10-25 12:29:14 -0600 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <Sheikh Dawood Abdul Ajees> | 2016-10-25 18:56:37 -0500 |
| commit | 3dfe2108cfab31ba3ee5527e217d0d8e99a51162 (patch) | |
| tree | fa6485c169e50d7415a651bf838f5bcd0fd3bfbd /APEX_1.4/include/ApexDefs.h | |
| download | physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.tar.xz physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.zip | |
Initial commit:
PhysX 3.4.0 Update @ 21294896
APEX 1.4.0 Update @ 21275617
[CL 21300167]
Diffstat (limited to 'APEX_1.4/include/ApexDefs.h')
| -rw-r--r-- | APEX_1.4/include/ApexDefs.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/APEX_1.4/include/ApexDefs.h b/APEX_1.4/include/ApexDefs.h new file mode 100644 index 00000000..929d453e --- /dev/null +++ b/APEX_1.4/include/ApexDefs.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. + * + * NVIDIA CORPORATION and its licensors retain all intellectual property + * and proprietary rights in and to this software, related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA CORPORATION is strictly prohibited. + */ + + +#ifndef APEX_DEFS_H +#define APEX_DEFS_H + +/*! +\file +\brief Version identifiers and other macro definitions + + This file is intended to be usable without picking up the entire + public APEX API, so it explicitly does not include Apex.h +*/ + +#include "PhysXSDKVersion.h" + +/*! + \def APEX_SDK_VERSION + \brief APEX Framework API version + + Used for making sure you are linking to the same version of the SDK files + that you have included. Should be incremented with every API change. + + \def APEX_SDK_RELEASE + \brief APEX SDK Release version + + Used for conditionally compiling user code based on the APEX SDK release version. + + \def DYNAMIC_CAST + \brief Determines use of dynamic_cast<> by APEX modules + + \def APEX_USE_PARTICLES + \brief Determines use of particle-related APEX modules + + \def APEX_DEFAULT_NO_INTEROP_IMPLEMENTATION + \brief Provide API stubs with no CUDA interop support + + Use this to add default implementations of interop-related interfaces for UserRenderer. +*/ + +#include "foundation/PxPreprocessor.h" + +#define APEX_SDK_VERSION 1 +#define APEX_SDK_RELEASE 0x01040000 + +#if USE_RTTI +#define DYNAMIC_CAST(type) dynamic_cast<type> +#else +#define DYNAMIC_CAST(type) static_cast<type> +#endif + +/// Enables CUDA code +#if defined(EXCLUDE_CUDA) && (EXCLUDE_CUDA > 0) +#define APEX_CUDA_SUPPORT 0 +#else +#define APEX_CUDA_SUPPORT (PX_SUPPORT_GPU_PHYSX) && !(PX_LINUX) +#endif + +/// Enables particles related code +#if !defined(EXCLUDE_PARTICLES) && PX_WINDOWS +#define APEX_USE_PARTICLES 1 +#else +#define APEX_USE_PARTICLES 0 +#endif + +/// Enables code specific for UE4 +#ifndef APEX_UE4 +#define APEX_UE4 0 +#endif + + +#define APEX_DEFAULT_NO_INTEROP_IMPLEMENTATION 1 + + +#endif // APEX_DEFS_H |