open_toontown_panda3d/panda/src/physx/physx_includes.h

64 lines
1.2 KiB
C

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file physx_includes.h
* @author joswilso
* @date 2007-01-30
*/
#ifndef PHYSX_INCLUDES_H
#define PHYSX_INCLUDES_H
// This one is safe to include
#include <NxVersionNumber.h>
// Platform-specific defines
#if defined(_WIN64)
#define NX64 1
#elif defined(_WIN32)
#define NX32 1
#else
#if NATIVE_WORDSIZE == 64
#define NX64 1
#endif
#if NATIVE_WORDSIZE == 32
#define NX32 1
#endif
#endif
#ifdef IS_LINUX
#define LINUX 1
#define CORELIB 1
#define NX_DISABLE_HARDWARE 1
#if NX_SDK_VERSION_NUMBER <= 281
// Defining this in 2.8.3.3 yields a crash.
#define NX_DISABLE_FLUIDS 1
#endif
#endif
// Undefine min and max before any PhysX headers get included
#undef min
#undef max
// PhysX headers
#include <Nxp.h>
#include <NxPhysics.h>
#include <NxExtended.h>
#include <NxStream.h>
#include <NxCooking.h>
#include <NxController.h>
#include <NxControllerManager.h>
#include <NxBoxController.h>
#include <NxCapsuleController.h>
#endif // PHYSX_INCLUDES_H