#include "../document.h"
#include "../view.h"
+#include "../screen.h"
using namespace std;
using namespace IPDF;
Document doc;
for (unsigned id = 0; id < test_objects; ++id)
{
- doc.Add(Random(), Random(), Random(), Random());
+ doc.Add((ObjectType)(rand() % 2), Rect(Random(), Random(), Random(), Random()));
}
doc.Save("test.ipdf");
}
+ View view(doc);
+ Screen scr;
+
+ while (scr.PumpEvents())
+ {
+ view.Render();
+ scr.Present();
+ }
+
return 0;
}