diff options
Diffstat (limited to 'NT/src/rotor.cpp')
| -rw-r--r-- | NT/src/rotor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp index bf0c26a..f600c7f 100644 --- a/NT/src/rotor.cpp +++ b/NT/src/rotor.cpp @@ -4,6 +4,7 @@ #include "factory.h" #include "nodes.h" #include "graph.h" +#include "rendercontext.h" using namespace std; using namespace Rotor; @@ -82,8 +83,8 @@ int main(){ delete m; delete p; */ - Rotor::Graph g; - cerr<<(g.load_file("testgraph.json","./")?"loaded ":"could not load ")<<"testgraph.json"<<endl; + Rotor::Render_context r("dbbbb4ba-8430-11e3-9774-74d02b29f6a6"); + cerr<<(r.graph.load_file("testgraph.json","./")?"loaded ":"could not load ")<<"testgraph.json"<<endl; /* Json::Value js; f.list_node("time",js); @@ -97,7 +98,7 @@ int main(){ //now need a way to grab output - Node* p=g.find_node("print"); + Node* p=r.graph.find_node("print"); if (p){ for (double t=0;t<10.0;t+=0.765){ |
