X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect.h;h=21068effc20b7debc024923ca3e12cd504ca63fb;hp=db0fa94d43397804194021c910419363e826d14e;hb=9447b2d234394c1d966f77ed87271a3625a81cdd;hpb=38fca90c6ffde05e3459c7021e823cef0b3b27ac diff --git a/effect.h b/effect.h index db0fa94..21068ef 100644 --- a/effect.h +++ b/effect.h @@ -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,