/* ---------------------------------------------------------------------------- * yage.h * * Copyright (c) 2017 Yann Herklotz Grave -- MIT License * See file LICENSE for more details * ---------------------------------------------------------------------------- */ /** @file Includes all the headers in the main YAGE project. * * This does not include */ #ifndef YAGE_YAGE_H #define YAGE_YAGE_H #include "camera2d.h" #include "glslprogram.h" #include "imageloader.h" #include "inputmanager.h" #include "iomanager.h" #include "picopng.h" #include "resourcemanager.h" #include "spritebatch.h" #include "texture.h" #include "vertex.h" #include "window.h" #include #include /** Project namespace. * * Avoids collision as all the classes and global functions are wrapped in. * it. */ namespace yage { /** Initializes YAGE. * * This is only there to initialize SDL2. * * @return Returns true if the initialization was successful. */ bool init() { return SDL_Init(SDL_INIT_VIDEO); } /** Quit and cleanup YAGE * * SDL2 needs to clean itself up. */ void quit() { SDL_Quit(); } } // namespace yage #endif