summaryrefslogtreecommitdiff
path: root/Runtime/Misc/DebugUtility.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Misc/DebugUtility.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Misc/DebugUtility.h')
-rw-r--r--Runtime/Misc/DebugUtility.h30
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