px.h
Engine/source/T3D/physics/physx/px.h
Public Variables
NxPhysicsSDK *
The single global physx sdk object for this process.
Detailed Description
Public Variables
NxPhysicsSDK * gPhysicsSDK
The single global physx sdk object for this process.
1 2//----------------------------------------------------------------------------- 3// Copyright (c) 2012 GarageGames, LLC 4// 5// Permission is hereby granted, free of charge, to any person obtaining a copy 6// of this software and associated documentation files (the "Software"), to 7// deal in the Software without restriction, including without limitation the 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9// sell copies of the Software, and to permit persons to whom the Software is 10// furnished to do so, subject to the following conditions: 11// 12// The above copyright notice and this permission notice shall be included in 13// all copies or substantial portions of the Software. 14// 15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21// IN THE SOFTWARE. 22//----------------------------------------------------------------------------- 23 24// 25// This PhysX implementation for Torque was originally based on 26// the "PhysX in TGEA" resource written by Shannon Scarvaci. 27// 28// http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=12711 29// 30 31#ifndef _PHYSX_H_ 32#define _PHYSX_H_ 33 34/* 35#ifndef _TORQUE_TYPES_H_ 36# include "platform/types.h" 37#endif 38*/ 39 40#include "platform/tmm_off.h" 41 42#ifdef TORQUE_DEBUG 43#include <crtdbg.h> 44#endif 45 46#if defined(TORQUE_OS_MAC) && !defined(__APPLE__) 47 #define __APPLE__ 48#elif defined(TORQUE_OS_LINUX) && !defined(LINUX) 49 #define LINUX 50#elif defined(TORQUE_OS_WIN) && !defined(WIN32) 51 #define WIN32 52#endif 53 54#ifndef NX_PHYSICS_NXPHYSICS 55#include <NxPhysics.h> 56#endif 57#ifndef NX_FOUNDATION_NXSTREAM 58#include <NxStream.h> 59#endif 60#ifndef NX_COOKING_H 61#include <NxCooking.h> 62#endif 63#ifndef NX_FOUNDATION_NXUSEROUTPUTSTREAM 64#include <NxUserOutputStream.h> 65#endif 66#ifndef NX_PHYSICS_NXBIG 67#include "NxExtended.h" 68#endif 69#include <NxUserAllocatorDefault.h> 70#include <CCTAllocator.h> 71#include <NxControllerManager.h> 72#include <CharacterControllerManager.h> 73#include <NxController.h> 74#include <NxCapsuleController.h> 75 76/// The single global physx sdk object for this process. 77extern NxPhysicsSDK *gPhysicsSDK; 78 79#include "platform/tmm_on.h" 80 81#endif // _PHYSX_H_ 82
