aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/game.cpp')
-rw-r--r--src/crepe/api/game.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/crepe/api/game.cpp b/src/crepe/api/game.cpp
new file mode 100644
index 0000000..02a0132
--- /dev/null
+++ b/src/crepe/api/game.cpp
@@ -0,0 +1,18 @@
+
+
+
+#include "game.h"
+#include "api/spritesheet.h"
+#include "facade/SdlContext.h"
+#include "facade/Texture.h"
+#include <vector>
+
+
+void game::render(std::vector<crepe::Texture*> & draw, std::vector<crepe::api::Spritesheet*> & ss){
+ auto& ctx = crepe::SdlContext::get_instance();
+
+ ctx.loop(*draw[0], *ss[0]);
+}
+
+
+