]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Video.hh
new lua scripting for scene loading
[chaz/yoink] / src / Moof / Video.hh
index 0dca8bbfeb5b36a79ead18a0760a89964c55a19c..d640ad2386ce7a4fefa4bdda725fb35485302297 100644 (file)
@@ -35,6 +35,8 @@
 
 #include <SDL/SDL.h>
 
+#include <Moof/Exception.hh>
+
 
 namespace Mf {
 
@@ -127,10 +129,15 @@ public:
        void swap();
 
 
-       struct Exception : public std::runtime_error
+       struct Exception : public Mf::Exception
        {
-               explicit Exception(const std::string& what_arg) :
-                       std::runtime_error(what_arg) {}
+               explicit Exception(unsigned error) :
+                       Mf::Exception(error) {}
+
+               void raise()
+               {
+                       throw *this;
+               }
        };
 };
 
This page took 0.018926 seconds and 4 git commands to generate.