From c10e0d92f46e5eaf25a69e1fafe5f4dbd8eaab9d Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 3 Nov 2021 09:52:26 +0800 Subject: *misc --- Runtime/GUI/TextMesh.h | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 Runtime/GUI/TextMesh.h (limited to 'Runtime/GUI/TextMesh.h') diff --git a/Runtime/GUI/TextMesh.h b/Runtime/GUI/TextMesh.h deleted file mode 100644 index c5f05a2..0000000 --- a/Runtime/GUI/TextMesh.h +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once -#include "../Graphics/VertexBuffer.h" -#include "Font.h" -#include "Runtime/Utilities/Exception.h" -#include - -CustomException(TextMeshException); - -enum ETextAnchor -{ - TextAnchor_UpperLeft, - TextAnchor_UpperCenter, - TextAnchor_UpperRight, - TextAnchor_MiddleLeft, - TextAnchor_MiddleCenter, - TextAnchor_MiddleRight, - TextAnchor_LowerLeft, - TextAnchor_LowerCenter, - TextAnchor_LowerRight, - TextAnchor_DontCare -}; - -enum ETextAlignment { - TextAlignment_Left, - TextAlignment_Center, - TextAlignment_Right, - TextAlignment_Auto, -}; - -typedef unsigned long long TextMeshHash; - -namespace TextHelper -{ - TextMeshHash GetTextMeshHash(); -} - -class TextMesh -{ -public: - TextMesh(const UnicodeString& str, Font* font, int pixelSize, ETextAnchor anchor, ETextAlignment alignment)/*throw TextMeshException*/; - - ~TextMesh(); - - void Draw(); - -private: - Font* m_Font; - std::unordered_map m_VBOs; - -}; \ No newline at end of file -- cgit v1.1-26-g67d0