mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +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 );
|
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 )
|
static inline void TextColoredUnformatted( const ImVec4& col, const char* text, const char* end = nullptr )
|
||||||
{
|
{
|
||||||
ImGui::PushStyleColor( ImGuiCol_Text, col );
|
ImGui::PushStyleColor( ImGuiCol_Text, col );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user