1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#pragma once #include "../Utilities/StaticInitiator.h" #include "UIMesh.h" // ´¿É«·½ÐÎ class UISquare : public UIMesh { public: UISquare(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; };