diff options
author | chai <chaifix@163.com> | 2021-10-31 14:27:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-31 14:27:26 +0800 |
commit | 601442f94fc0dcfdc5a117c5f87d90b156d53045 (patch) | |
tree | b006bcd6a28a965a900c64f4716007fcb45eee98 /Runtime/Rendering/UIQuad.h | |
parent | 26f05c6e3dcac9995345fb5a2b031be7e3ea79e9 (diff) |
+static initiator
Diffstat (limited to 'Runtime/Rendering/UIQuad.h')
-rw-r--r-- | Runtime/Rendering/UIQuad.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Runtime/Rendering/UIQuad.h b/Runtime/Rendering/UIQuad.h new file mode 100644 index 0000000..f6d3a98 --- /dev/null +++ b/Runtime/Rendering/UIQuad.h @@ -0,0 +1,21 @@ +#pragma once +#include "DynamicMesh.h" +#include "../Utilities/StaticInitiator.h" + +class UIQuad : public DynamicMesh +{ +public : + UIQuad(float l, float r, float t, float b) + { + m_Left = l; + m_Right = r; + m_Top = t; + m_Bottom = b; + } + + void Draw() override; + +private: + float m_Left, m_Right, m_Top, m_Bottom; + +}; |