X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=sandbox_effect.h;h=072bc2b1096a95e592de293c396bdb2ce647afd7;hp=391be6d78520121193fb81537e615aea7be6e7a7;hb=6278a96c8e0ea5df9d831ecd5b893f831ddc8297;hpb=0b4a4101426130d2b7037cdb219d5c05b8d4c3d3 diff --git a/sandbox_effect.h b/sandbox_effect.h index 391be6d..072bc2b 100644 --- a/sandbox_effect.h +++ b/sandbox_effect.h @@ -8,14 +8,18 @@ // 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" class SandboxEffect : public Effect { public: SandboxEffect(); + virtual std::string effect_type_id() const { return "SandboxEffect"; } std::string output_fragment_shader(); - 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); private: float parm;