Initial outline rendering.
[ipdf/code.git] / src / main.cpp
index 5b8d4b8..5fa94b7 100644 (file)
@@ -1,14 +1,27 @@
 #include "common.h"
 
 #include "common.h"
 
-#include "ipdf.h"
+#include "document.h"
+#include "view.h"
+#include "screen.h"
 
 using namespace std;
 using namespace IPDF;
 
 int main(int argc, char ** argv)
 {
 
 using namespace std;
 using namespace IPDF;
 
 int main(int argc, char ** argv)
 {
-       Real a = 10;
-       Real b = 20;
-       Debug("a*b = %f", RealToFloat(a*b));
+       Document doc;
+       srand(time(NULL));
+       doc.Add(Random(), Random(), Random(), Random());
+
+       View view(doc);
+
+       Screen scr;
+
+       while (scr.PumpEvents())
+       {
+               view.Render();
+               scr.Present();
+       }
+
        return 0;
 }
        return 0;
 }

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