From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Misc/DebugUtility.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Runtime/Misc/DebugUtility.h (limited to 'Runtime/Misc/DebugUtility.h') 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 -- cgit v1.1-26-g67d0