git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
All of the SDL2 graphics stuff.
[ipdf/code.git]
/
src
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
701e163
..
273d82a
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-2,6
+2,7
@@
#include "document.h"
#include "view.h"
#include "document.h"
#include "view.h"
+#include "screen.h"
using namespace std;
using namespace IPDF;
using namespace std;
using namespace IPDF;
@@
-12,7
+13,14
@@
int main(int argc, char ** argv)
doc.Add(0.5, 0.5, 0.5, 0.5);
View view(doc);
doc.Add(0.5, 0.5, 0.5, 0.5);
View view(doc);
- view.Render();
+
+ Screen scr;
+
+ while (scr.PumpEvents())
+ {
+ view.Render();
+ scr.Present();
+ }
return 0;
}
return 0;
}
UCC
git Repository :: git.ucc.asn.au