diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-06-21 13:11:37 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-06-21 13:11:37 +0100 |
commit | 77c2f920442b7b73cd3f1f94c3362948c7fb2a5d (patch) | |
tree | acb39ebf2b271500208c52ae7894178499152fff /include/YAGE/yage.hpp | |
parent | 6b974b64e447610f8b5340817ffd4a3513d4f3d1 (diff) | |
download | YAGE-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.hpp | 39 |
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 |