diff options
author | chai <chaifix@163.com> | 2021-11-02 21:52:09 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-02 21:52:09 +0800 |
commit | 3898f2c648b1a731dead8337aad8912d2b8b80d7 (patch) | |
tree | da06ea76f91ead6ba13722dd73ebbd8e8fb9b30c /Runtime/GUI/UIQuad.h | |
parent | 72812a7b47f90f9460e54e8149ba9199a7841244 (diff) |
*misc
Diffstat (limited to 'Runtime/GUI/UIQuad.h')
-rw-r--r-- | Runtime/GUI/UIQuad.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Runtime/GUI/UIQuad.h b/Runtime/GUI/UIQuad.h new file mode 100644 index 0000000..bcd95a0 --- /dev/null +++ b/Runtime/GUI/UIQuad.h @@ -0,0 +1,21 @@ +#pragma once +#include "../Rendering/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; + +}; |