Add icon texture accessor.

This commit is contained in:
Bartosz Taudul
2026-05-27 21:39:20 +02:00
parent 04c1a84159
commit 9da66d4c6b
2 changed files with 4 additions and 0 deletions

View File

@@ -124,6 +124,8 @@ tracy::AchievementsMgr* s_achievements;
static const tracy::data::AchievementItem* s_achievementItem = nullptr;
static bool s_switchAchievementCategory = false;
ImTextureID GetProfilerIconTexture() { return iconTex; }
static float smoothstep( float x )
{
return x * x * ( 3.0f - 2.0f * x );

View File

@@ -16,6 +16,8 @@
#include "IconsFontAwesome6.h"
#include "TracySourceTokenizer.hpp"
ImTextureID GetProfilerIconTexture();
#if !IMGUI_DEFINE_MATH_OPERATORS
static inline ImVec2 operator+( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x + r.x, l.y + r.y ); }
static inline ImVec2 operator-( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x - r.x, l.y - r.y ); }