diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-08-15 17:34:37 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-08-15 17:34:37 +0300 |
commit | 8531ef6591d9b778092b2ddce09a8705abaccaeb (patch) | |
tree | 87e35c5e85b1651ee2c987df0f02330d18bad5ae /server/TracyUtility.hpp | |
parent | 07a1383304f7b073c5782a3930946147d4d6b6d6 (diff) |
Extract ShortenZoneName() function to a separate file.
Diffstat (limited to 'server/TracyUtility.hpp')
-rw-r--r-- | server/TracyUtility.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/server/TracyUtility.hpp b/server/TracyUtility.hpp new file mode 100644 index 00000000..d30c727d --- /dev/null +++ b/server/TracyUtility.hpp @@ -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 |