Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-11-01 15:48:46 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2008-11-01 15:48:46 +0300
commit54401d36aadabe38decd9cd64f1385e1757bd303 (patch)
treed11dee61cec1e4fd617e687f97244a17e55179b6 /source/gameengine/VideoTexture/Exception.h
parentb590b121d354ca1352191f56aa66d0c2ee494fb4 (diff)
BGE Video Texture: fix constant initializer problem with Exception description. Uniformized the line ending.
Diffstat (limited to 'source/gameengine/VideoTexture/Exception.h')
-rw-r--r--source/gameengine/VideoTexture/Exception.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/gameengine/VideoTexture/Exception.h b/source/gameengine/VideoTexture/Exception.h
index 85865fb3654..5345e87f199 100644
--- a/source/gameengine/VideoTexture/Exception.h
+++ b/source/gameengine/VideoTexture/Exception.h
@@ -27,6 +27,7 @@ http://www.gnu.org/copyleft/lesser.txt.
#include <exception>
#include <vector>
#include <string>
+#include <algorithm>
#include "Common.h"
@@ -117,6 +118,11 @@ public:
desc = m_description;
}
+ void registerDesc(void)
+ {
+ if (std::find(m_expDescs.begin(), m_expDescs.end(), this) == m_expDescs.end())
+ m_expDescs.push_back(this);
+ }
// list of exception descriptions
static std::vector<ExpDesc*> m_expDescs;
@@ -192,4 +198,13 @@ protected:
};
+extern ExpDesc MaterialNotAvailDesc;
+extern ExpDesc ImageSizesNotMatchDesc;
+extern ExpDesc SceneInvalidDesc;
+extern ExpDesc CameraInvalidDesc;
+extern ExpDesc SourceVideoEmptyDesc;
+extern ExpDesc SourceVideoCreationDesc;
+
+
+void registerAllExceptions(void);
#endif