1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Extract ShortenZoneName() function to a separate file.

This commit is contained in:
Bartosz Taudul
2022-08-15 16:34:37 +02:00
parent 07a1383304
commit 8531ef6591
7 changed files with 155 additions and 125 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef __TRACYUTILITY_HPP__
#define __TRACYUTILITY_HPP__
#include <stdint.h>
#include "imgui.h"
namespace tracy
{
enum class ShortenName : uint8_t
{
Never,
Always,
OnlyNormalize,
NoSpace,
NoSpaceAndNormalize,
};
const char* ShortenZoneName( ShortenName type, const char* name, ImVec2& tsz, float zsz );
}
#endif