X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=sandbox_effect.h;h=530511a3fb2ccb5fb5f64685b36b7f34089232b1;hp=391be6d78520121193fb81537e615aea7be6e7a7;hb=037ee905bc05fcbb278ac3a0b1f73249efada9b2;hpb=0b4a4101426130d2b7037cdb219d5c05b8d4c3d3 diff --git a/sandbox_effect.h b/sandbox_effect.h index 391be6d..530511a 100644 --- a/sandbox_effect.h +++ b/sandbox_effect.h @@ -1,5 +1,5 @@ -#ifndef _SANDBOX_EFFECT_H -#define _SANDBOX_EFFECT_H 1 +#ifndef _MOVIT_SANDBOX_EFFECT_H +#define _MOVIT_SANDBOX_EFFECT_H 1 // This effect, by default, does nothing. // @@ -8,17 +8,25 @@ // throwaway code. When you're happy, you can do a bit of search and replace // to give it a proper name and its own place in the build system. +#include +#include + #include "effect.h" +namespace movit { + class SandboxEffect : public Effect { public: SandboxEffect(); - std::string output_fragment_shader(); + std::string effect_type_id() const override { return "SandboxEffect"; } + std::string output_fragment_shader() override; - void set_uniforms(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num); + void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num) override; private: float parm; }; -#endif // !defined(_SANDBOX_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_SANDBOX_EFFECT_H)