X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLayer.hh;h=9ba428899c6461060dacfbd97c0b0b2806c1ca30;hp=55e233ed02b39067b267507018273419889481b8;hb=71bd9dbaf1c1e3c55a9f63392a73865d8aeee7d4;hpb=a31d65a998121df0651c57bfb68782e2a07d2e2f diff --git a/src/Moof/Layer.hh b/src/Moof/Layer.hh index 55e233e..9ba4288 100644 --- a/src/Moof/Layer.hh +++ b/src/Moof/Layer.hh @@ -31,7 +31,6 @@ #include -#include #include #include @@ -43,7 +42,7 @@ namespace Mf { class Engine; -class Layer : public Drawable +class Layer { public: @@ -52,9 +51,12 @@ public: virtual void pushed(Engine& engine) {} virtual void popped(Engine& engine) {} - virtual void update(Scalar t, Scalar dt) {} - virtual void draw(Scalar alpha) const {} - virtual bool handleEvent(const Event& event) { return false; } + virtual void update(Engine& engine, Scalar t, Scalar dt) {} + virtual void draw(Engine& engine, Scalar alpha) const {} + virtual bool handleEvent(Engine& engine, const Event& event) + { + return false; + } }; typedef boost::shared_ptr LayerP;