Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-06-03 02:35:53 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-06-03 02:35:53 +0300
commit4f5286a86019f46ba6dca76625deb03e7d3a1afd (patch)
tree15339be736bce46e226c2b88ec4447e4fee3f2b5 /server/TracyImGui.hpp
parentff6768986ed1e00163aef5589719c9de8aaca119 (diff)
Add unformatted colored text extension function.
Diffstat (limited to 'server/TracyImGui.hpp')
-rw-r--r--server/TracyImGui.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp
index 95d0b809..fd33efb1 100644
--- a/server/TracyImGui.hpp
+++ b/server/TracyImGui.hpp
@@ -19,6 +19,13 @@ namespace tracy
ImGui::TextUnformatted( text );
}
+ static inline void TextColoredUnformatted( const ImVec4& col, const char* text )
+ {
+ ImGui::PushStyleColor( ImGuiCol_Text, col );
+ ImGui::TextUnformatted( text );
+ ImGui::PopStyleColor();
+ }
+
static inline void TextDisabledUnformatted( const char* begin, const char* end = nullptr )
{
ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] );