X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fmain.cpp;h=273d82a5bd0901ca32c4c044bf55b0c86b7a9764;hb=428f1eb86a616d95dbb72ff08a3d09771d5c47e6;hp=701e163cba31552f0fbc2a3a93c4f49803e0b086;hpb=b006386ab52e8a2c47c20bc21591d01c314d4d8e;p=ipdf%2Fcode.git diff --git a/src/main.cpp b/src/main.cpp index 701e163..273d82a 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; @@ -12,7 +13,14 @@ int main(int argc, char ** argv) doc.Add(0.5, 0.5, 0.5, 0.5); View view(doc); - view.Render(); + + Screen scr; + + while (scr.PumpEvents()) + { + view.Render(); + scr.Present(); + } return 0; }