]> git.sesse.net Git - movit/blob - resize_effect.cpp
Move to 'using namespace std;' in all .cpp files.
[movit] / resize_effect.cpp
1 #include "resize_effect.h"
2 #include "util.h"
3
4 using namespace std;
5
6 ResizeEffect::ResizeEffect()
7         : width(1280), height(720)
8 {
9         register_int("width", &width);
10         register_int("height", &height);
11 }
12
13 string ResizeEffect::output_fragment_shader()
14 {
15         return read_file("identity.frag");
16 }
17
18 void ResizeEffect::get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const
19 {
20         *virtual_width = *width = this->width;
21         *virtual_height = *height = this->height;
22 }