RavEngine
Loading...
Searching...
No Matches
PxPhysXCommonConfig.h
1// Redistribution and use in source and binary forms, with or without
2// modification, are permitted provided that the following conditions
3// are met:
4// * Redistributions of source code must retain the above copyright
5// notice, this list of conditions and the following disclaimer.
6// * Redistributions in binary form must reproduce the above copyright
7// notice, this list of conditions and the following disclaimer in the
8// documentation and/or other materials provided with the distribution.
9// * Neither the name of NVIDIA CORPORATION nor the names of its
10// contributors may be used to endorse or promote products derived
11// from this software without specific prior written permission.
12//
13// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24//
25// Copyright (c) 2008-2022 NVIDIA Corporation. All rights reserved.
26// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
27// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
28
29#ifndef PX_PHYSX_COMMON_CONFIG_H
30#define PX_PHYSX_COMMON_CONFIG_H
31
35#include "foundation/Px.h"
36
37/*Disable support for VS2017 prior version 15.5.1 for windows platform, because of a compiler bug:
38https://developercommunity.visualstudio.com/content/problem/66047/possible-compiler-bug.html
39*/
40#if (PX_VC == 15) && PX_WINDOWS && (_MSC_FULL_VER < 191225830)
41#error Visual studio 2017 prior to 15.5.1 is not supported because of a compiler bug.
42#endif
43
44// define API function declaration (public API only needed because of extensions)
45#if defined PX_PHYSX_STATIC_LIB
46 #define PX_PHYSX_CORE_API
47#else
48 #if PX_WINDOWS_FAMILY
49 #if defined PX_PHYSX_CORE_EXPORTS
50 #define PX_PHYSX_CORE_API __declspec(dllexport)
51 #else
52 #define PX_PHYSX_CORE_API __declspec(dllimport)
53 #endif
54 #elif PX_UNIX_FAMILY
55 #define PX_PHYSX_CORE_API PX_UNIX_EXPORT
56 #else
57 #define PX_PHYSX_CORE_API
58 #endif
59#endif
60
61#if PX_SUPPORT_GPU_PHYSX
62// define API function declaration
63#if defined PX_PHYSX_GPU_STATIC
64 #define PX_PHYSX_GPU_API
65#else
66 #if PX_WINDOWS
67 #if defined PX_PHYSX_GPU_EXPORTS
68 #define PX_PHYSX_GPU_API __declspec(dllexport)
69 #else
70 #define PX_PHYSX_GPU_API __declspec(dllimport)
71 #endif
72 #elif PX_UNIX_FAMILY
73 #define PX_PHYSX_GPU_API PX_UNIX_EXPORT
74 #else
75 #define PX_PHYSX_GPU_API
76 #endif
77#endif
78
79#else // PX_SUPPORT_GPU_PHYSX
80#define PX_PHYSX_GPU_API
81#endif // PX_SUPPORT_GPU_PHYSX
82
83#if defined PX_PHYSX_STATIC_LIB
84 #define PX_PHYSX_COMMON_API
85#else
86 #if PX_WINDOWS_FAMILY && !defined(__CUDACC__)
87 #if defined PX_PHYSX_COMMON_EXPORTS
88 #define PX_PHYSX_COMMON_API __declspec(dllexport)
89 #else
90 #define PX_PHYSX_COMMON_API __declspec(dllimport)
91 #endif
92 #elif PX_UNIX_FAMILY
93 #define PX_PHYSX_COMMON_API PX_UNIX_EXPORT
94 #else
95 #define PX_PHYSX_COMMON_API
96 #endif
97#endif
98
99// PT: typical "invalid" value in various CD algorithms
100#define PX_INVALID_U32 0xffffffff
101#define PX_INVALID_U16 0xffff
102
103// Changing these parameters requires recompilation of the SDK
104
105// Enable debug visualization
106#define PX_ENABLE_DEBUG_VISUALIZATION 1
107#define PX_CATCH_UNDEFINED_ENABLE_DEBUG_VISUALIZATION
108
109// Enable simulation statistics generation
110#define PX_ENABLE_SIM_STATS 1
111#define PX_CATCH_UNDEFINED_ENABLE_SIM_STATS
112
113#if !PX_DOXYGEN
114namespace physx
115{
116#endif
117 typedef PxU32 PxTriangleID;
118 typedef PxU16 PxMaterialTableIndex;
119 typedef PxU16 PxFEMMaterialTableIndex;
120
121#if !PX_DOXYGEN
122} // namespace physx
123#endif
124
126#endif
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39