NetAnim: Demo example must use absolute path
authorJohn Abraham <john.abraham.in@gmail.com>
Sun, 12 Jan 2014 18:43:41 -0800
changeset 10565 614cdbf1e0a6
parent 10564 c2758c47dbc1
child 10566 9594a4df3bde
NetAnim: Demo example must use absolute path
src/netanim/examples/resources_demo.cc
--- a/src/netanim/examples/resources_demo.cc	Sun Jan 12 15:03:49 2014 -0800
+++ b/src/netanim/examples/resources_demo.cc	Sun Jan 12 18:43:41 2014 -0800
@@ -169,9 +169,9 @@
   // Create the animation object and configure for specified output
   pAnim = new AnimationInterface (animFile, true); // true --> Enable 3.105 behavior
   // Provide the absolute path to the resource
-  resourceId1 = pAnim->AddResource ("./ns-3-logo1.png");
-  resourceId2 = pAnim->AddResource ("./ns-3-logo2.png");
-  pAnim->SetBackgroundImage ("./ns-3-background.png", 0, 0, 0.2, 0.2, 0.1);
+  resourceId1 = pAnim->AddResource ("/Users/john/ns3/netanim-3.105/ns-3-logo1.png");
+  resourceId2 = pAnim->AddResource ("/Users/john/ns3/netanim-3.105/ns-3-logo2.png");
+  pAnim->SetBackgroundImage ("/Users/john/ns3/netanim-3.105/ns-3-background.png", 0, 0, 0.2, 0.2, 0.1);
   Simulator::Schedule (Seconds (0.1), modify);
   
   // Set up the acutal simulation