summaryrefslogtreecommitdiff
path: root/Runtime/GUI/UIQuad.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-02 21:52:09 +0800
committerchai <chaifix@163.com>2021-11-02 21:52:09 +0800
commit3898f2c648b1a731dead8337aad8912d2b8b80d7 (patch)
treeda06ea76f91ead6ba13722dd73ebbd8e8fb9b30c /Runtime/GUI/UIQuad.h
parent72812a7b47f90f9460e54e8149ba9199a7841244 (diff)
*misc
Diffstat (limited to 'Runtime/GUI/UIQuad.h')
-rw-r--r--Runtime/GUI/UIQuad.h21
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;
+
+};