summaryrefslogtreecommitdiff
path: root/include/log.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/log.hpp')
-rw-r--r--include/log.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/log.hpp b/include/log.hpp
index 5efad6e..4e3f4f5 100644
--- a/include/log.hpp
+++ b/include/log.hpp
@@ -19,6 +19,7 @@
#include "timer.h"
#include "imgui.h"
#include "config.hpp"
+#include "administration.hpp"
#define MAX_LEN_LOG_HISTORY 256
#define MAX_LEN_LOG_TXT 128
@@ -27,10 +28,14 @@ typedef struct {
u32 write_cursor;
u32 history_length;
char history[MAX_LEN_LOG_HISTORY][MAX_LEN_LOG_TXT];
+ ImVec4 colors[MAX_LEN_LOG_HISTORY];
} log;
#define STOPWATCH_START tick_t timestamp_start = timer_current();
#define STOPWATCH_TIME (timer_elapsed(timestamp_start)*1000.0f)
log* get_log();
-void log_add(const char* fmt, ...) IM_FMTARGS(2); \ No newline at end of file
+
+void log_aerr(a_err errors);
+void log_info(const char* fmt, ...) IM_FMTARGS(2);
+void log_error(const char* fmt, ...) IM_FMTARGS(2); \ No newline at end of file