Merge branch 'master' of git.ucc.asn.au:ipdf/code
[ipdf/code.git] / src / main.cpp
1 #include "common.h"
2
3 #include "document.h"
4 #include "view.h"
5 #include "screen.h"
6
7 using namespace std;
8 using namespace IPDF;
9
10 int main(int argc, char ** argv)
11 {
12         Document doc;
13         srand(time(NULL));
14         doc.Add(Random(), Random(), Random(), Random());
15
16         View view(doc);
17
18         Screen scr;
19
20         while (scr.PumpEvents())
21         {
22                 view.Render();
23                 scr.Present();
24         }
25
26         return 0;
27 }

UCC git Repository :: git.ucc.asn.au