PxFoundation.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 
14 #ifndef PX_FOUNDATION_PX_FOUNDATION_H
15 #define PX_FOUNDATION_PX_FOUNDATION_H
16 
22 #include "foundation/PxErrors.h"
23 
24 #ifndef PX_DOXYGEN
25 namespace physx
26 {
27 #endif
28 
29 class PxErrorCallback;
32 
39 {
40 public:
49  virtual void release() = 0;
50 
54  virtual PxErrorCallback& getErrorCallback() const = 0;
55 
59  virtual void setErrorLevel(PxErrorCode::Enum mask = PxErrorCode::eMASK_ALL) = 0;
60 
64  virtual PxErrorCode::Enum getErrorLevel() const = 0;
65 
69  virtual PxBroadcastingAllocator& getAllocator() const = 0;
70 
74  virtual PxAllocatorCallback& getAllocatorCallback() const = 0;
75 
79  virtual bool getReportAllocationNames() const = 0;
80 
85  virtual void setReportAllocationNames(bool value) = 0;
86 
87 protected:
88  virtual ~PxFoundation() {}
89 };
90 
91 #ifndef PX_DOXYGEN
92 } // namespace physx
93 #endif
94 
95 
111  physx::PxAllocatorCallback& allocator,
112  physx::PxErrorCallback& errorCallback);
121 
123 #endif // PX_FOUNDATION_PX_FOUNDATION_H


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com