summaryrefslogtreecommitdiff
path: root/rotord/rotor.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-06-25 19:42:30 +0100
committerTim Redfern <tim@herge.(none)>2013-06-25 19:42:30 +0100
commit1daee727f5d47681a73417a469d71673e1a0827c (patch)
tree4183a04deb54a69a07d73d2ea38f61cb39ab62d3 /rotord/rotor.h
parentf191b170379e5ae7f237aa2f7adae5f387caaa35 (diff)
pesky youtube movies
Diffstat (limited to 'rotord/rotor.h')
-rwxr-xr-xrotord/rotor.h32
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: