mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
28 lines
560 B
C++
28 lines
560 B
C++
#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 );
|
|
void TooltipNormalizedName( const char* name, const char* normalized );
|
|
|
|
static inline const char* ShortenZoneName( ShortenName type, const char* name ) { ImVec2 tsz = {}; return ShortenZoneName( type, name, tsz, 0 ); }
|
|
|
|
}
|
|
|
|
#endif
|