CMake support. We don't have to use it, but it's there if we do.
[ipdf/code.git] / src / main.cpp
index e683564..2a85c14 100644 (file)
@@ -1,7 +1,27 @@
 #include "common.h"
 
+#include "document.h"
+#include "view.h"
+#include "screen.h"
+
+using namespace std;
+using namespace IPDF;
+
 int main(int argc, char ** argv)
 {
-       Debug("It's alive!");
+       Document doc;
+       srand(time(NULL));
+       doc.Add(RECT_FILLED, Rect(Random(), Random(), Random(), Random()));
+
+       View view(doc);
+
+       Screen scr;
+
+       while (scr.PumpEvents())
+       {
+               view.Render();
+               scr.Present();
+       }
+
        return 0;
 }

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