X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fglsl_error.h;h=46ca49be35daf98062a9cff156426fde9882eb6b;hb=30465dd3b9f55ec42c4b19c3c2077eede7237a26;hp=63c49bbd9112d95f521369d43577603958e17589;hpb=47286086863b6009192ffdb3d3471c83211ee943;p=libs%2Fgl.git diff --git a/source/glsl/glsl_error.h b/source/glsl/glsl_error.h index 63c49bbd..46ca49be 100644 --- a/source/glsl/glsl_error.h +++ b/source/glsl/glsl_error.h @@ -23,6 +23,13 @@ public: virtual ~invalid_shader_source() throw() { } }; +class syntax_error: public invalid_shader_source +{ +public: + syntax_error(const Location &, const std::string &, const std::string &); + virtual ~syntax_error() throw() { } +}; + class parse_error: public invalid_shader_source { public: @@ -30,6 +37,13 @@ public: virtual ~parse_error() throw() { } }; +class unsupported_shader: public std::runtime_error +{ +public: + unsupported_shader(const std::string &w): runtime_error(w) { } + virtual ~unsupported_shader() throw() { } +}; + } // namespace SL } // namespace GL } // namespace Msp