From 3898f2c648b1a731dead8337aad8912d2b8b80d7 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 2 Nov 2021 21:52:09 +0800 Subject: *misc --- Runtime/GUI/UIQuad.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Runtime/GUI/UIQuad.h (limited to 'Runtime/GUI/UIQuad.h') 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; + +}; -- cgit v1.1-26-g67d0