Unformatted colored text printing with uint32 color.

This commit is contained in:
Bartosz Taudul 2020-05-03 14:33:11 +02:00
parent b69bf49082
commit 3aed0ba150

View File

@ -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 );