forked from rpbpolis/spic-prj-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Debug.hpp
49 lines (39 loc) · 1.21 KB
/
Debug.hpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef DEBUG_H_
#define DEBUG_H_
#include "Point.hpp"
#include "Color.hpp"
#include <string>
namespace spic {
/**
* @brief Some convenient debugging functions.
*/
namespace Debug {
/**
* @brief Draws a colored line between specified start and end points.
* @param start The starting point.
* @param end The end point.
* @param color The line color, defaults to white.
* @spicapi
*/
void DrawLine(const Point& start, const Point& end, const Color& color = Color::white());
/**
* @brief Logs a message to the Console.
* @param message The message to write.
* @spicapi
*/
void Log(const std::string& message);
/**
* @brief A variant of Debug.Log that logs an error message to the console.
* @param message The message to write.
* @spicapi
*/
void LogError(const std::string& error);
/**
* @brief A variant of Debug.Log that logs a warning message to the console.
* @param message The message to write.
* @spicapi
*/
void LogWarning(const std::string& warning);
}
}
#endif // DEBUG_H_