diff options
author | chai <chaifix@163.com> | 2021-11-20 14:10:24 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-20 14:10:24 +0800 |
commit | 74ca8143a7c2352425d549b681b2838bda5ee218 (patch) | |
tree | 5aad35e7312b7c1b54769091b30f47d8ad747acb /Runtime/GUI/UILine.h | |
parent | 850d9c034792b96e2ff5ff3bbfbcc30661757aed (diff) |
*misc
Diffstat (limited to 'Runtime/GUI/UILine.h')
-rw-r--r-- | Runtime/GUI/UILine.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Runtime/GUI/UILine.h b/Runtime/GUI/UILine.h new file mode 100644 index 0000000..a47b1f1 --- /dev/null +++ b/Runtime/GUI/UILine.h @@ -0,0 +1,21 @@ +#pragma once + +#include "../Utilities/StaticInitiator.h" +#include "UIMesh.h" + +class UILine : public UIMesh +{ +public: + UILine(Vector2f from, Vector2f to) + { + m_From = from; + m_To = to; + } + + void Draw() override; + +private: + Vector2f m_From; + Vector2f m_To; + +}; |