X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLayer.hh;h=31607fba32a5459767e405227db074eb052c3110;hp=8ec678d6b26fa0decfbbaac39f0ad5e83eef709a;hb=987971a961454d97082c6448fdc0bbeb540281bb;hpb=892da43bf5796e7c5f593a6d0f53bd797a36bd3e diff --git a/src/Moof/Layer.hh b/src/Moof/Layer.hh index 8ec678d..31607fb 100644 --- a/src/Moof/Layer.hh +++ b/src/Moof/Layer.hh @@ -31,7 +31,6 @@ #include -#include #include #include @@ -39,20 +38,21 @@ namespace Mf { -// forward declaration -class Engine; - - -struct Layer : public Drawable +class Layer { +public: + virtual ~Layer() {} - virtual void pushed(Engine& engine) {} - virtual void popped(Engine& engine) {} + virtual void addedToCore() {} + virtual void removedFromCore() {} virtual void update(Scalar t, Scalar dt) {} virtual void draw(Scalar alpha) const {} - virtual bool handleEvent(const Event& event) { return false; } + virtual bool handleEvent(const Event& event) + { + return false; + } }; typedef boost::shared_ptr LayerP;