]> git.sesse.net Git - movit/blobdiff - resize_effect.cpp
Move everything into “namespace movit”.
[movit] / resize_effect.cpp
index e701d71df7cb53fa890fc7f8aebd4ff18bff507a..5fd761a7acee1f55cfc0cd78c1a9e10352d0e576 100644 (file)
@@ -1,6 +1,10 @@
 #include "resize_effect.h"
 #include "util.h"
 
+using namespace std;
+
+namespace movit {
+
 ResizeEffect::ResizeEffect()
        : width(1280), height(720)
 {
@@ -8,13 +12,15 @@ ResizeEffect::ResizeEffect()
        register_int("height", &height);
 }
 
-std::string ResizeEffect::output_fragment_shader()
+string ResizeEffect::output_fragment_shader()
 {
        return read_file("identity.frag");
 }
 
-void ResizeEffect::get_output_size(unsigned *width, unsigned *height) const
+void ResizeEffect::get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const
 {
-       *width = this->width;
-       *height = this->height;
+       *virtual_width = *width = this->width;
+       *virtual_height = *height = this->height;
 }
+
+}  // namespace movit