X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=d7df87a29380f67305d4a401b82a755e581d95e8;hp=cd74d6d114877773b132883ec644fd892a9d1b16;hb=7a83af96414ff156f56455ff7a5e7af01fc403b5;hpb=ee5287fabfb214e8f7b483cde424108270525fd7 diff --git a/src/main.cpp b/src/main.cpp index cd74d6d..d7df87a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -77,7 +77,7 @@ int main(int argc, char ** argv) if (input_filename != NULL) { - doc.Load(input_filename); + doc.LoadSVG(input_filename); } else { @@ -94,14 +94,16 @@ int main(int argc, char ** argv) for (int y = 0; y < 8; ++y) { //doc.Add(static_cast((x^y)%3), Rect(0.2+x-4.0,0.2+y-4.0,0.6,0.6)); - doc.Add(BEZIER, Rect(0.2+x-4.0, 0.2+y-4.0, 0.6,0.6), (x^y)%3); + //doc.Add(BEZIER, Rect(0.2+x-4.0, 0.2+y-4.0, 0.6,0.6), (x^y)%3); } - - //doc.Add(RECT_OUTLINE, Rect(0.1,0.1,0.8,0.8), 0); - //doc.Add(BEZIER, Rect(0,0,1,1), 0); } - + doc.Add(BEZIER, Rect(0.1,0.1,0.8,0.8), 0); + doc.Add(BEZIER, Rect(0.1,0.1,0.8,0.8), 1); + doc.Add(BEZIER, Rect(0.1,0.1,0.8,0.8), 2); + doc.Add(BEZIER, Rect(0.1,0.1,0.8,0.8), 3); + //doc.Add(CIRCLE_FILLED, Rect(0.1,0.1,0.8,0.8), 0); } + Debug("Start!"); Rect bounds(b[0],b[1],b[2],b[3]); if (mode == LOOP)