mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 08:33:48 +00:00
Add icon texture accessor.
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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 ); }
|
||||
|
||||
Reference in New Issue
Block a user