X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FEngine.hh;h=2d7dfd6aa77b9ee56ebb591f7e7954c15b69875a;hp=112b87ea8dba3ea07f8d1cbefe5407003e045b4e;hb=16d1a05b0777e97a45c48e2874aa4e5cc791282e;hpb=15cd32dc28e7fa5997d9850d7e10b889f69a7cae diff --git a/src/Moof/Engine.hh b/src/Moof/Engine.hh index 112b87e..2d7dfd6 100644 --- a/src/Moof/Engine.hh +++ b/src/Moof/Engine.hh @@ -29,6 +29,8 @@ #ifndef _MOOF_ENGINE_HH_ #define _MOOF_ENGINE_HH_ +#include + #include #include @@ -46,8 +48,8 @@ class Video; class Engine : public Singleton { public: - Engine(const std::string& name, int argc, char* argv[], - const std::string& configFile); + Engine(int argc, char* argv[], const std::string& configFile, + const std::string& name, const std::string& iconFile); virtual ~Engine(); int run(); @@ -66,6 +68,12 @@ public: virtual void draw(Scalar alpha); virtual void handleEvent(const Event& event); + struct Exception : std::runtime_error + { + explicit Exception(const std::string& what_arg) : + std::runtime_error(what_arg) {} + }; + private: class EngineImpl; boost::shared_ptr impl_;