X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resize_effect.cpp;fp=resize_effect.cpp;h=e701d71df7cb53fa890fc7f8aebd4ff18bff507a;hp=0000000000000000000000000000000000000000;hb=e9d9fc790abdf093176a0314f4588c6b8146e5a2;hpb=0d4629f3aa7a9ea1587797577bee7659a7249153 diff --git a/resize_effect.cpp b/resize_effect.cpp new file mode 100644 index 0000000..e701d71 --- /dev/null +++ b/resize_effect.cpp @@ -0,0 +1,20 @@ +#include "resize_effect.h" +#include "util.h" + +ResizeEffect::ResizeEffect() + : width(1280), height(720) +{ + register_int("width", &width); + register_int("height", &height); +} + +std::string ResizeEffect::output_fragment_shader() +{ + return read_file("identity.frag"); +} + +void ResizeEffect::get_output_size(unsigned *width, unsigned *height) const +{ + *width = this->width; + *height = this->height; +}