diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Misc/DebugUtility.h |
Diffstat (limited to 'Runtime/Misc/DebugUtility.h')
-rw-r--r-- | Runtime/Misc/DebugUtility.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Runtime/Misc/DebugUtility.h b/Runtime/Misc/DebugUtility.h new file mode 100644 index 0000000..90d355c --- /dev/null +++ b/Runtime/Misc/DebugUtility.h @@ -0,0 +1,30 @@ +#ifndef DEBUGUTILITY_H +#define DEBUGUTILITY_H + +class Vector3f; +class ColorRGBAf; +class EditorExtension; + +#if GAMERELEASE + +//#define DebugDrawLine (a,b,c,d) ; +//#define ClearLines () ; +//#define PauseEditor () ; +inline void DebugDrawLine (const Vector3f& p0, const Vector3f& p1, const ColorRGBAf& color, double durationSeconds, bool depthTest){} +inline void ClearLines (){} +inline void ClearAllLines (){} +inline void PauseEditor (){} + +#else + +void DebugDrawLine (const Vector3f& p0, const Vector3f& p1, const ColorRGBAf& color, double durationSeconds, bool depthTest); +void ClearLines (); +void ClearAllLines (); +void PauseEditor (); + +void DrawDebugLinesGizmo (); + +#endif + + +#endif |