X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=5fa94b7572bce4481816a64ae6dd5113ffc80cbd;hp=5b8d4b8ca6434e8359434085f70aaf8ba18bf20e;hb=ee71bff635865bd443eed14e3558f72446439ab3;hpb=e24f0693b4e3989e625448009175c06e1e6e08d4 diff --git a/src/main.cpp b/src/main.cpp index 5b8d4b8..5fa94b7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,14 +1,27 @@ #include "common.h" -#include "ipdf.h" +#include "document.h" +#include "view.h" +#include "screen.h" using namespace std; using namespace IPDF; int main(int argc, char ** argv) { - Real a = 10; - Real b = 20; - Debug("a*b = %f", RealToFloat(a*b)); + 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; }