X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=273d82a5bd0901ca32c4c044bf55b0c86b7a9764;hp=701e163cba31552f0fbc2a3a93c4f49803e0b086;hb=245ccc8576d4bd29ab04d506ddb0c44b04a67e39;hpb=7daf0a17868a6ab712b7a7476d269133036368ef 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; }