RavEngine
Loading...
Searching...
No Matches
physx::PxErrorCallback Class Referenceabstract

User defined interface class. Used by the library to emit debug information. More...

#include <PxErrorCallback.h>

Inheritance diagram for physx::PxErrorCallback:
[legend]

Public Member Functions

virtual void reportError (PxErrorCode::Enum code, const char *message, const char *file, int line)=0
 Reports an error code.
 
virtual void reportError (PxErrorCode::Enum code, const char *message, const char *file, int line)=0
 Reports an error code.
 

Detailed Description

User defined interface class. Used by the library to emit debug information.

Note
The SDK state should not be modified from within any error reporting functions.

Threading: The SDK sequences its calls to the output stream using a mutex, so the class need not be implemented in a thread-safe manner if the SDK is the only client.

Member Function Documentation

◆ reportError() [1/2]

virtual void physx::PxErrorCallback::reportError ( PxErrorCode::Enum  code,
const char *  message,
const char *  file,
int  line 
)
pure virtual

Reports an error code.

Parameters
codeError code, see #PxErrorCode
messageMessage to display.
fileFile error occured in.
lineLine number error occured on.

Implemented in physx::PxBroadcastingErrorCallback, and physx::PxDefaultErrorCallback.

◆ reportError() [2/2]

virtual void physx::PxErrorCallback::reportError ( PxErrorCode::Enum  code,
const char *  message,
const char *  file,
int  line 
)
pure virtual

Reports an error code.

Parameters
codeError code, see #PxErrorCode
messageMessage to display.
fileFile error occured in.
lineLine number error occured on.

Implemented in physx::PxBroadcastingErrorCallback, and physx::PxDefaultErrorCallback.


The documentation for this class was generated from the following files: