diff options
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 |