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
e683564
..
273d82a
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-1,7
+1,26
@@
#include "common.h"
#include "common.h"
+#include "document.h"
+#include "view.h"
+#include "screen.h"
+
+using namespace std;
+using namespace IPDF;
+
int main(int argc, char ** argv)
{
int main(int argc, char ** argv)
{
- Debug("It's alive!");
+ Document doc;
+ doc.Add(0.5, 0.5, 0.5, 0.5);
+
+ View view(doc);
+
+ Screen scr;
+
+ while (scr.PumpEvents())
+ {
+ view.Render();
+ scr.Present();
+ }
+
return 0;
}
return 0;
}
UCC
git Repository :: git.ucc.asn.au