]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Engine.hh
fixed up video and texture handling
[chaz/yoink] / src / Moof / Engine.hh
index 112b87ea8dba3ea07f8d1cbefe5407003e045b4e..2d7dfd6aa77b9ee56ebb591f7e7954c15b69875a 100644 (file)
@@ -29,6 +29,8 @@
 #ifndef _MOOF_ENGINE_HH_
 #define _MOOF_ENGINE_HH_
 
+#include <stdexcept>
+
 #include <boost/shared_ptr.hpp>
 
 #include <Moof/Dispatcher.hh>
@@ -46,8 +48,8 @@ class Video;
 class Engine : public Singleton<Engine>
 {
 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<EngineImpl> impl_;
This page took 0.020798 seconds and 4 git commands to generate.