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#ifndef PX_PHYSICS_EXTENSIONS_DEFAULT_ERROR_CALLBACK_H
14#define PX_PHYSICS_EXTENSIONS_DEFAULT_ERROR_CALLBACK_H
15
16#include "foundation/PxErrorCallback.h"
17#include "PxPhysXConfig.h"
18
19#ifndef PX_DOXYGEN
20namespace physx
21{
22#endif
23
24 /**
25 \brief default implementation of the error callback
26
27 This class is provided in order to enable the SDK to be started with the minimum of user code. Typically an application
28 will use its own error callback, and log the error to file or otherwise make it visible. Warnings and error messages from
29 the SDK are usually indicative that changes are required in order for PhysX to function correctly, and should not be ignored.
30 */
31
32 class PxDefaultErrorCallback : public PxErrorCallback
33 {
34 public:
35 PxDefaultErrorCallback();
36 ~PxDefaultErrorCallback();
37
38 virtual void reportError(PxErrorCode::Enum code, const char* message, const char* file, int line);
39 };
40
41#ifndef PX_DOXYGEN
42} // namespace physx
43#endif
44
45#endif
46