blob: ed768afbe35c936ffed1f0ee7fc86006ae8b2205 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
/*
* Copyright (c) 2008-2017, 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 0x01040100
#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
/// Enables Linux shared library
#ifndef APEX_LINUX_SHARED_LIBRARIES
#define APEX_LINUX_SHARED_LIBRARIES 0
#endif
#define APEX_DEFAULT_NO_INTEROP_IMPLEMENTATION 1
#endif // APEX_DEFS_H
|