diff options
Diffstat (limited to 'rotord/rotor.h')
| -rwxr-xr-x | rotord/rotor.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h index cb1e815..da7e875 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -1200,7 +1200,6 @@ namespace Rotor { if (_mode=="screen") mode=BLEND_screen; if (_mode=="multiply") mode=BLEND_multiply; if (_mode=="blend") mode=BLEND_blend; - cerr<<"blend node: mode: "<<mode<<" amount: "<<amount<<endl; }; void link_params() { for (auto p:parameter_inputs){ @@ -1245,6 +1244,37 @@ namespace Rotor { int mode; float amount; //for blend }; + #define MIRROR_horiz 1 + #define MIRROR_vert 1 + /* + class Mirror: public Image_node { + public: + Mirror(){}; + Mirror(map<string,string> &settings) { + base_settings(settings); + image=new Image(); + amount=find_setting(settings,"amount",1.0f); + string _mode=find_setting(settings,"mode","screen"); + if (_mode=="horiz") mode=BLEND_screen; + if (_mode=="vert") mode=BLEND_multiply; + }; + ~Mirror(){ delete image;}; + Mirror* clone(map<string,string> &_settings) { return new Mirror(_settings);}; + Image *output(const Frame_spec &frame){ + if (image_inputs.size()) { + if (image_inputs[0]->connection){ + + //if there aren't 2 image inputs connected just return the first + return (((Image_node*)image_inputs[0]->connection)->get_output(frame)); + } + } + return nullptr; + } + private: + Image *image; //is an image generator + int mode; + }; + */ //------------------------------------------------------------------- class Node_factory{ public: |
