added: Logging and log-points
This commit is contained in:
parent
3cc5499196
commit
b8eafc3283
Binary file not shown.
BIN
build/src/main.o
BIN
build/src/main.o
Binary file not shown.
10
imgui.ini
10
imgui.ini
@ -28,18 +28,18 @@ Collapsed=0
|
|||||||
Pos=8,8
|
Pos=8,8
|
||||||
Size=1264,352
|
Size=1264,352
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000005,0
|
DockId=0x00000003,0
|
||||||
|
|
||||||
[Window][Console]
|
[Window][Console]
|
||||||
Pos=8,362
|
Pos=8,362
|
||||||
Size=1264,350
|
Size=1264,350
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x00000006,0
|
DockId=0x00000004,0
|
||||||
|
|
||||||
[Docking][Data]
|
[Docking][Data]
|
||||||
DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=8,8 Size=1264,704 Split=Y
|
DockSpace ID=0x14621557 Window=0x3DA2F1DE Pos=8,8 Size=1264,704 Split=Y Selected=0xC450F867
|
||||||
DockNode ID=0x00000005 Parent=0x14621557 SizeRef=1264,352 CentralNode=1 Selected=0xC450F867
|
DockNode ID=0x00000003 Parent=0x14621557 SizeRef=1264,352 CentralNode=1 Selected=0xC450F867
|
||||||
DockNode ID=0x00000006 Parent=0x14621557 SizeRef=1264,350 Selected=0xEA83D666
|
DockNode ID=0x00000004 Parent=0x14621557 SizeRef=1264,350 Selected=0xEA83D666
|
||||||
DockSpace ID=0xC0DFADC4 Pos=8,30 Size=1264,682 Split=X Selected=0x1FC7AC8C
|
DockSpace ID=0xC0DFADC4 Pos=8,30 Size=1264,682 Split=X Selected=0x1FC7AC8C
|
||||||
DockNode ID=0x00000001 Parent=0xC0DFADC4 SizeRef=632,685 CentralNode=1 Selected=0xAAD7FFD4
|
DockNode ID=0x00000001 Parent=0xC0DFADC4 SizeRef=632,685 CentralNode=1 Selected=0xAAD7FFD4
|
||||||
DockNode ID=0x00000002 Parent=0xC0DFADC4 SizeRef=630,685 Selected=0x1FC7AC8C
|
DockNode ID=0x00000002 Parent=0xC0DFADC4 SizeRef=630,685 Selected=0x1FC7AC8C
|
||||||
|
11
src/main.cpp
11
src/main.cpp
@ -7,10 +7,20 @@
|
|||||||
#include "imgui_impl_opengl3.h"
|
#include "imgui_impl_opengl3.h"
|
||||||
#include "../IconsFontAwesome6.h" // Include the Font Awesome icons header
|
#include "../IconsFontAwesome6.h" // Include the Font Awesome icons header
|
||||||
|
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#define DEBUG 1
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
#define LOGPOINT(msg) std::cout << "[TESRCT] [" << __func__ << ":" << __LINE__ << "] " << (msg) << std::endl;
|
||||||
|
#else
|
||||||
|
#define LOGPOINT(msg)
|
||||||
|
#endif
|
||||||
|
|
||||||
// Logger Implementation
|
// Logger Implementation
|
||||||
enum class LogLevel { INFO, WARNING, ERROR };
|
enum class LogLevel { INFO, WARNING, ERROR };
|
||||||
|
|
||||||
@ -74,6 +84,7 @@ ImVec4 GetColorForLogLevel(LogLevel level)
|
|||||||
|
|
||||||
int main(int, char**)
|
int main(int, char**)
|
||||||
{
|
{
|
||||||
|
LOGPOINT("Loading Engine");
|
||||||
Logger::GetInstance().Log(LogLevel::INFO, "Loading engine...");
|
Logger::GetInstance().Log(LogLevel::INFO, "Loading engine...");
|
||||||
|
|
||||||
// Setup GLFW error callback
|
// Setup GLFW error callback
|
||||||
|
Loading…
Reference in New Issue
Block a user