mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Unformatted colored text printing with uint32 color.
This commit is contained in:
parent
b69bf49082
commit
3aed0ba150
@ -25,6 +25,13 @@ namespace tracy
|
||||
ImGui::TextUnformatted( text );
|
||||
}
|
||||
|
||||
static inline void TextColoredUnformatted( uint32_t col, const char* text, const char* end = nullptr )
|
||||
{
|
||||
ImGui::PushStyleColor( ImGuiCol_Text, col );
|
||||
ImGui::TextUnformatted( text, end );
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
|
||||
static inline void TextColoredUnformatted( const ImVec4& col, const char* text, const char* end = nullptr )
|
||||
{
|
||||
ImGui::PushStyleColor( ImGuiCol_Text, col );
|
||||
|
Loading…
Reference in New Issue
Block a user