X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FEngine.hh;h=07e982abd9ee4207478d077b8365cedc01897643;hp=c5e99864f103e49dedffee2721609f48e136fe84;hb=a295f8def17036c8071b56e181364f99a377cae7;hpb=b357615aba1dbde81e3c6999366604e6001010a7 diff --git a/src/Moof/Engine.hh b/src/Moof/Engine.hh index c5e9986..07e982a 100644 --- a/src/Moof/Engine.hh +++ b/src/Moof/Engine.hh @@ -32,6 +32,7 @@ #include #include +#include #include #include @@ -42,7 +43,7 @@ namespace Mf { /** * The engine is essentially a stack of layers. While running, it updates each * layer from the bottom up every timestep. It also draws each layer from the - * bottom up, adhering to the maximum frame-rate. Events are send to each layer + * bottom up, adhering to the maximum frame-rate. Events are sent to each layer * from the top down until a layer signals the event was handled. The engine is * also responsible for firing timers on time. The engine will continue running * as long as there are layers on the stack. @@ -52,10 +53,10 @@ class Engine { public: + Engine(); ~Engine() {} - // get global instance - static Engine& getInstance(); + const Error& getError() const; // setting the video is required before you can run the engine and should // probably be done before adding any layers @@ -90,13 +91,14 @@ public: private: - Engine(); // use getInstance() to access the engine - class Impl; boost::shared_ptr mImpl; }; +extern Engine engine; + + } // namespace Mf #endif // _MOOF_ENGINE_HH_