Panda3D
physx_includes.h
1 // Filename: ode_includes.h
2 // Created by: joswilso (30Jan07)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSX_INCLUDES_H
16 #define PHYSX_INCLUDES_H
17 
18 // This one is safe to include
19 #include "NxVersionNumber.h"
20 
21 // Platform-specific defines
22 #if defined(_WIN64)
23 #define NX64 1
24 #elif defined(_WIN32)
25 #define NX32 1
26 #else
27 #if NATIVE_WORDSIZE == 64
28 #define NX64 1
29 #endif
30 
31 #if NATIVE_WORDSIZE == 32
32 #define NX32 1
33 #endif
34 #endif
35 
36 #ifdef IS_LINUX
37 #define LINUX 1
38 #define CORELIB 1
39 #define NX_DISABLE_HARDWARE 1
40 #if NX_SDK_VERSION_NUMBER <= 281
41 // Defining this in 2.8.3.3 yields a crash.
42 #define NX_DISABLE_FLUIDS 1
43 #endif
44 #endif
45 
46 
47 // Undefine min and max before any PhysX headers get included
48 #undef min
49 #undef max
50 
51 
52 // PhysX headers
53 #include "Nxp.h"
54 #include "NxPhysics.h"
55 #include "NxExtended.h"
56 #include "NxStream.h"
57 #include "NxCooking.h"
58 #include "NxController.h"
59 #include "NxControllerManager.h"
60 #include "NxBoxController.h"
61 #include "NxCapsuleController.h"
62 
63 
64 #endif // PHYSX_INCLUDES_H