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