00001
00002
00003 #ifndef _PHYSXDEBUGHELPER_H_INCLUDED_
00004 #define _PHYSXDEBUGHELPER_H_INCLUDED_
00005
00006
00007 #include "NXU_helper.h"
00008
00009
00010
00011
00012
00013 void switchPhysxDebugRenderingEnabled();
00014 bool getPhysxDebugRenderingEnabled();
00015
00016
00017
00018
00019 class NxDebugOutput : public NxUserOutputStream
00020 {
00021 public:
00022 virtual void reportError(NxErrorCode code, const char* message, const char* file, int line);
00023 virtual NxAssertResponse reportAssertViolation(const char* message, const char* file, int line);
00024 virtual void print(const char* message);
00025 };
00026
00027
00028
00029 class NxDebugRenderer
00030 {
00031 public:
00032 NxDebugRenderer();
00033 ~NxDebugRenderer();
00034
00035
00036
00037
00038 ERR_TYPE update( f32 timeMS );
00039 };
00040
00041
00042
00043 class NxuDebugOutput : public NXU_errorReport
00044 {
00045 public:
00046 virtual void NXU_errorMessage(bool isError, const char* str);
00047 };
00048
00049
00050
00051 class NxuUserNotify : public NXU_userNotify
00052 {
00053 public:
00054
00055
00056 virtual void NXU_notifyScene(NxU32 sno, NxScene* scene, const char* userProperties);
00057
00058
00059 virtual void NXU_notifyActor(NxActor* actor, const char* userProperties);
00060
00061
00062 virtual void NXU_notifyTriangleMesh(NxTriangleMesh *t, const char* userProperties);
00063
00064
00065
00066 virtual NxScene *NXU_preNotifyScene(unsigned int sno, NxSceneDesc& scene, const char* userProperties);
00067
00068
00069
00070 virtual bool NXU_preNotifyActor(NxActorDesc& actor, const char* userProperties);
00071
00072
00073
00074 virtual bool NXU_preNotifyTriangleMesh(NxTriangleMeshDesc& t, const char* userProperties);
00075
00076
00077
00078 virtual bool NXU_preNotifySceneInstance(const char* name, const char* sceneName, const char* userProperties, NxMat34& rootNode, NxU32 depth);
00079
00080
00081 virtual void NXU_notifySceneFailed(unsigned int sno, NxSceneDesc& scene, const char* userProperties);
00082
00083
00084 virtual void NXU_notifyActorFailed(NxActorDesc& actor, const char* userProperties);
00085
00086
00087 virtual void NXU_notifyTriangleMeshFailed(NxTriangleMeshDesc& t,const char* userProperties);
00088 };
00089
00090
00091 #endif // #ifndef _PHYSXDEBUGHELPER_H_INCLUDED_