Public Member Functions | List of all members
PxDefaultErrorCallback Class Reference

default implementation of the error callback More...

#include <PxDefaultErrorCallback.h>

Inheritance diagram for PxDefaultErrorCallback:
Inheritance graph
[legend]
Collaboration diagram for PxDefaultErrorCallback:
Collaboration graph
[legend]

Public Member Functions

 PxDefaultErrorCallback ()
 
 ~PxDefaultErrorCallback ()
 
virtual void reportError (PxErrorCode::Enum code, const char *message, const char *file, int line)
 Reports an error code. More...
 
- Public Member Functions inherited from PxErrorCallback
virtual ~PxErrorCallback ()
 

Detailed Description

default implementation of the error callback

This class is provided in order to enable the SDK to be started with the minimum of user code. Typically an application will use its own error callback, and log the error to file or otherwise make it visible. Warnings and error messages from the SDK are usually indicative that changes are required in order for PhysX to function correctly, and should not be ignored.

Constructor & Destructor Documentation

PxDefaultErrorCallback::PxDefaultErrorCallback ( )
PxDefaultErrorCallback::~PxDefaultErrorCallback ( )

Member Function Documentation

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

Reports an error code.

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

Implements PxErrorCallback.


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


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