X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=dither_effect.h;fp=dither_effect.h;h=71bb6d35723d3a19b3ca91be4175f5af5bcb0e1b;hb=39b6975420669958ed9f4013440aea415134a902;hp=921a1ef5e1130ca6184e401fe06e8b267b4c67e2;hpb=720873f02e01c2aba9ce53bb5c6bcbe887af27ce;p=movit diff --git a/dither_effect.h b/dither_effect.h index 921a1ef..71bb6d3 100644 --- a/dither_effect.h +++ b/dither_effect.h @@ -59,16 +59,16 @@ private: public: ~DitherEffect(); - virtual std::string effect_type_id() const { return "DitherEffect"; } - std::string output_fragment_shader(); + std::string effect_type_id() const override { return "DitherEffect"; } + std::string output_fragment_shader() override; // Note that if we did error diffusion, we'd actually want to diffuse the // premultiplied error. However, we need to do dithering in the same // space as quantization, whether that be pre- or postmultiply. - virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; } - virtual bool one_to_one_sampling() const { return true; } + AlphaHandling alpha_handling() const override { return DONT_CARE_ALPHA_TYPE; } + bool one_to_one_sampling() const override { return true; } - void set_gl_state(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: void update_texture(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);