aboutsummaryrefslogtreecommitdiffstats
path: root/yage/yage.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-09-20 00:29:45 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-09-20 00:29:45 +0100
commit39ca43ca3b24dcae76e1283ec8af4a16c845e2b7 (patch)
treed3aa095fa982695ffc3e621f62797a041ac36cb3 /yage/yage.cpp
parent34396f0483d94229e3a315e5eeb90c77c1425273 (diff)
downloadYAGE-39ca43ca3b24dcae76e1283ec8af4a16c845e2b7.tar.gz
YAGE-39ca43ca3b24dcae76e1283ec8af4a16c845e2b7.zip
More tests and adding spritesheet support
Diffstat (limited to 'yage/yage.cpp')
-rw-r--r--yage/yage.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/yage/yage.cpp b/yage/yage.cpp
new file mode 100644
index 00000000..fa1e5c36
--- /dev/null
+++ b/yage/yage.cpp
@@ -0,0 +1,24 @@
+/* ----------------------------------------------------------------------------
+ * yage.h
+ *
+ * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
+ * See file LICENSE for more details
+ * ----------------------------------------------------------------------------
+ */
+
+#include "yage.h"
+
+namespace yage
+{
+
+bool init()
+{
+ return SDL_Init(SDL_INIT_VIDEO);
+}
+
+void quit()
+{
+ SDL_Quit();
+}
+
+} // namespace yage