summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-04-30 22:20:53 -0500
committertom <tom@ground-control>2015-04-30 22:20:53 -0500
commite1d75dfdf0727776adf0b3d44995ccf0e03487b3 (patch)
treef26074b8e9c598df33c66b1c57aad1e4dcd51f03 /src/main.cpp
first commit
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644
index 0000000..5ab78b3
--- /dev/null
+++ b/src/main.cpp
@@ -0,0 +1,25 @@
+#include "main.h"
+
+int main()
+{
+ Window main;
+ Entity ship(main, "images/basic.png");
+ Event e;
+
+ while(e.gRun())
+ {
+ while(e.Poll())
+ {
+ if(e.gEventType() == SDL_QUIT)
+ e.off();
+ //else if(e.gEventType() == SDL_KEYDOWN)
+ // eventHandle(e.gEvent());
+ }
+ main.Clear();
+ ship.Place();
+ main.Render();
+ }
+
+ main.Destroy();
+ return 0;
+}