00001 #ifndef LIBWIISPRITE_LAYER
00002 #define LIBWIISPRITE_LAYER
00003
00004 #include <stdlib.h>
00005 #include <gccore.h>
00006
00008 namespace wsp{
00010 class Layer{
00011 public:
00012
00013 Layer();
00014
00015 virtual ~Layer();
00016
00019 u32 GetHeight() const;
00022 u32 GetWidth() const;
00023
00026 f32 GetX() const;
00029 f32 GetY() const;
00030
00033 bool IsVisible() const;
00036 void SetVisible(bool visible);
00037
00041 void SetPosition(f32 x, f32 y);
00045 void Move(f32 deltaX, f32 deltaY);
00046
00050 virtual void Draw(f32 offsetX = 0, f32 offsetY = 0) const;
00051 protected:
00052 u32 _height,
00053 _width;
00054 private:
00055 f32 _x, _y;
00056 bool _visible;
00057 };
00058 };
00059
00060 #endif