X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=273d82a5bd0901ca32c4c044bf55b0c86b7a9764;hp=e68356462835f8cd038c893a29fb52ba5c3ba98c;hb=245ccc8576d4bd29ab04d506ddb0c44b04a67e39;hpb=f8de7d373ff0a5d977adee1d1a464401ece60550 diff --git a/src/main.cpp b/src/main.cpp index e683564..273d82a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,26 @@ #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; + doc.Add(0.5, 0.5, 0.5, 0.5); + + View view(doc); + + Screen scr; + + while (scr.PumpEvents()) + { + view.Render(); + scr.Present(); + } + return 0; }