YAGE  v0.1.1
Yet Another Game Engine
yage.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * yage.h
3  *
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5  * See file LICENSE for more details
6  * ----------------------------------------------------------------------------
7  */
8 
14 #ifndef YAGE_YAGE_H
15 #define YAGE_YAGE_H
16 
17 #include "camera2d.h"
18 #include "glslprogram.h"
19 #include "imageloader.h"
20 #include "inputmanager.h"
21 #include "iomanager.h"
22 #include "picopng.h"
23 #include "resourcemanager.h"
24 #include "spritebatch.h"
25 #include "texture.h"
26 #include "vertex.h"
27 #include "window.h"
28 
29 #include <SDL2/SDL.h>
30 
31 #include <stdexcept>
32 
38 namespace yage
39 {
40 
47 bool init()
48 {
49  return SDL_Init(SDL_INIT_VIDEO);
50 }
51 
56 void quit()
57 {
58  SDL_Quit();
59 }
60 
61 } // namespace yage
62 
63 #endif
bool init()
Initializes YAGE.
Definition: yage.h:47
void quit()
Quit and cleanup YAGE.
Definition: yage.h:56
Project namespace.
Definition: body.cpp:13