Blamite Game Engine - Blam (Core)
debug_colors.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <map>
4 
6 #include "components/3rdparty/imgui/imgui.h"
7 
8 #ifndef BLAM
9 #define BLAM
10 #endif
11 
22 {
30  BLAM BlamColor* GetNamedColor(std::string id);
31 
38  BLAM void RegisterNamedColor(std::string id, BlamColor color);
39 
44 
52  BLAM ImVec4 MessageColorToImColor(std::string color_id);
53 
62  BLAM std::map<std::string, BlamColor>* GetColorList();
63 }
logger.h
BLAM
#define BLAM
Definition: debug_colors.h:9
InternalUI::Colors::RegisterDefaultColors
BLAM void RegisterDefaultColors()
Registers all hard-coded color information.
Definition: debug_ui_colors.cpp:32
InternalUI::Colors::MessageColorToImColor
BLAM ImVec4 MessageColorToImColor(std::string color_id)
Retrieves a color by its ID, as an ImGUI-compatiable color.
Definition: debug_ui_colors.cpp:103
InternalUI::Colors
Namespace containing things related colors used in various places in the engine.
Definition: debug_colors.h:21
InternalUI::Colors::GetColorList
BLAM std::map< std::string, BlamColor > * GetColorList()
Retrieves the list of colors known to the engine.
Definition: debug_ui_colors.cpp:22
InternalUI::Colors::RegisterNamedColor
BLAM void RegisterNamedColor(std::string id, BlamColor color)
Registers a new color.
Definition: debug_ui_colors.cpp:27
InternalUI::Colors::GetNamedColor
BLAM BlamColor * GetNamedColor(std::string id)
Retrieves a color by its ID.
Definition: debug_ui_colors.cpp:7
BlamColor
Structure representing a color.
Definition: colors.h:18