summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Quad.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-19 09:13:58 +0800
committerchai <chaifix@163.com>2020-10-19 09:13:58 +0800
commitf0807fc44dde14531759306317611bab87c8fccf (patch)
tree6e78fed61c16a70cda5fa732635f89f9faac9720 /Runtime/Graphics/Quad.h
parent639b34294ffc20721c66db46e59e07d9100ac4b8 (diff)
+gamelab proj
Diffstat (limited to 'Runtime/Graphics/Quad.h')
-rw-r--r--Runtime/Graphics/Quad.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Runtime/Graphics/Quad.h b/Runtime/Graphics/Quad.h
new file mode 100644
index 0000000..0e38ec4
--- /dev/null
+++ b/Runtime/Graphics/Quad.h
@@ -0,0 +1,25 @@
+#ifndef QUAD_H
+#define QUAD_H
+
+#include "../Utilities/UtilMacros.h"
+
+class Quad
+{
+public:
+ Quad(float l, float r, float t, float b);
+
+ void Set(float l, float r, float t, float b);
+
+ GET_SET(float, Left, m_Left);
+ GET_SET(float, Right, m_Right);
+ GET_SET(float, Top, m_Top);
+ GET_SET(float, Bottom, m_Bottom);
+
+ void Draw();
+
+private:
+ float m_Left, m_Right, m_Top, m_Bottom;
+
+};
+
+#endif \ No newline at end of file