summaryrefslogtreecommitdiff
path: root/NT/src/rotor.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-01-23 14:03:07 +0000
committerTim Redfern <tim@eclectronics.org>2014-01-23 14:03:07 +0000
commitefebf20348daca798c22cbac770d47e9151f941f (patch)
tree05c1a4148047d89271b2566c8924d872ad023938 /NT/src/rotor.cpp
parenta897d2e0ba7744c818eed46441347cfb4f384613 (diff)
NT logging structure
Diffstat (limited to 'NT/src/rotor.cpp')
-rw-r--r--NT/src/rotor.cpp7
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){