summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
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;
+}