summaryrefslogtreecommitdiff
path: root/Runtime/Misc/DebugUtility.h
blob: 90d355c09b5dedd40f600b5396f40eedf05b398a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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