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