aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/yage.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-06-21 13:11:37 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-06-21 13:11:37 +0100
commit77c2f920442b7b73cd3f1f94c3362948c7fb2a5d (patch)
treeacb39ebf2b271500208c52ae7894178499152fff /include/YAGE/yage.hpp
parent6b974b64e447610f8b5340817ffd4a3513d4f3d1 (diff)
downloadYAGE-77c2f920442b7b73cd3f1f94c3362948c7fb2a5d.tar.gz
YAGE-77c2f920442b7b73cd3f1f94c3362948c7fb2a5d.zip
Creating general includes for easier use
Diffstat (limited to 'include/YAGE/yage.hpp')
-rw-r--r--include/YAGE/yage.hpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/YAGE/yage.hpp b/include/YAGE/yage.hpp
new file mode 100644
index 00000000..cec03d00
--- /dev/null
+++ b/include/YAGE/yage.hpp
@@ -0,0 +1,39 @@
+#ifndef YAGE_HPP
+#define YAGE_HPP
+
+#include "camera2d.hpp"
+#include "glslprogram.hpp"
+#include "imageloader.hpp"
+#include "inputmanager.hpp"
+#include "iomanager.hpp"
+#include "picopng.hpp"
+#include "resourcemanager.hpp"
+#include "spritebatch.hpp"
+#include "texture.hpp"
+#include "vertex.hpp"
+#include "window.hpp"
+
+#include <SDL2/SDL.h>
+
+#include <stdexcept>
+
+namespace yage
+{
+
+bool init()
+{
+ if(SDL_Init(SDL_INIT_VIDEO))
+ {
+ return false;
+ }
+ return true;
+}
+
+void quit()
+{
+ SDL_Quit();
+}
+
+};
+
+#endif