X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=5fa94b7572bce4481816a64ae6dd5113ffc80cbd;hp=701e163cba31552f0fbc2a3a93c4f49803e0b086;hb=ee71bff635865bd443eed14e3558f72446439ab3;hpb=b006386ab52e8a2c47c20bc21591d01c314d4d8e diff --git a/src/main.cpp b/src/main.cpp index 701e163..5fa94b7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; }