UGDK
|
00001 #ifndef UGDK_GRAPHIC_DRAWABLE_SOLIDRECTANGLE_H_ 00002 #define UGDK_GRAPHIC_DRAWABLE_SOLIDRECTANGLE_H_ 00003 00004 #include <ugdk/graphic/drawable/shape.h> 00005 #include <ugdk/base/types.h> 00006 00007 namespace ugdk { 00008 namespace graphic { 00009 00010 class SolidRectangle : public Shape { 00011 public: 00012 SolidRectangle(const Vector2D& size); 00013 ~SolidRectangle(); 00014 00015 void Update(double dt); 00016 void Draw() const; 00017 00018 const Vector2D& size() const { return size_; } 00019 void set_size(const Vector2D& size) { size_ = size; } 00020 00021 const Color& color() const { return color_; } 00022 void set_color(const Color& color) { color_ = color; } 00023 00024 private: 00025 Vector2D size_; 00026 Color color_; 00027 }; 00028 00029 } // namespace graphic 00030 } // namespace ugdk 00031 00032 #endif