aboutsummaryrefslogtreecommitdiffstats
path: root/yage/yage.cpp
diff options
context:
space:
mode:
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