Initial outline rendering.
[ipdf/code.git] / src / main.cpp
index 701e163..5fa94b7 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "document.h"
 #include "view.h"
+#include "screen.h"
 
 using namespace std;
 using namespace IPDF;
@@ -9,10 +10,18 @@ using namespace IPDF;
 int main(int argc, char ** argv)
 {
        Document doc;
-       doc.Add(0.5, 0.5, 0.5, 0.5);
+       srand(time(NULL));
+       doc.Add(Random(), Random(), Random(), Random());
 
        View view(doc);
-       view.Render();
+
+       Screen scr;
+
+       while (scr.PumpEvents())
+       {
+               view.Render();
+               scr.Present();
+       }
 
        return 0;
 }

UCC git Repository :: git.ucc.asn.au