X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect.h;h=235558f8e1c4cf9f480361f0f428916885b1e0e5;hp=db0fa94d43397804194021c910419363e826d14e;hb=72cb236f13d9e0823acd1ecf261b6e92ace48de2;hpb=2c9711e213679e11bea1b0e86bb46af442b22ee0 diff --git a/effect.h b/effect.h index db0fa94..235558f 100644 --- a/effect.h +++ b/effect.h @@ -18,7 +18,7 @@ #include -#include "opengl.h" +#include #include "util.h" class EffectChain; @@ -179,10 +179,10 @@ public: // Set a parameter; intended to be called from user code. // Neither of these take ownership of the pointer. - virtual bool set_int(const std::string&, int value); - virtual bool set_float(const std::string &key, float value); - virtual bool set_vec2(const std::string &key, const float *values); - virtual bool set_vec3(const std::string &key, const float *values); + virtual bool set_int(const std::string&, int value) MUST_CHECK_RESULT; + virtual bool set_float(const std::string &key, float value) MUST_CHECK_RESULT; + virtual bool set_vec2(const std::string &key, const float *values) MUST_CHECK_RESULT; + virtual bool set_vec3(const std::string &key, const float *values) MUST_CHECK_RESULT; protected: // Register a parameter. Whenever set_*() is called with the same key,