-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSDL.h
More file actions
40 lines (36 loc) · 1.32 KB
/
SDL.h
File metadata and controls
40 lines (36 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* SDL
* Copyright (C) 2015 Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl)
*
* Este programa es software libre: usted puede redistribuirlo y/o modificarlo
* bajo los términos de la Licencia Pública General GNU publicada
* por la Fundación para el Software Libre, ya sea la versión 3
* de la Licencia, o (a su elección) cualquier versión posterior de la misma.
*
* Este programa se distribuye con la esperanza de que sea útil, pero
* SIN GARANTÍA ALGUNA; ni siquiera la garantía implícita
* MERCANTIL o de APTITUD PARA UN PROPÓSITO DETERMINADO.
* Consulte los detalles de la Licencia Pública General GNU para obtener
* una información más detallada.
*
* Debería haber recibido una copia de la Licencia Pública General GNU
* junto a este programa.
* En caso contrario, consulte <http://www.gnu.org/licenses/gpl.html>.
*
*/
#ifndef SDL_H
#define SDL_H
#include <string>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_mixer.h>
class SDL {
public:
static SDL_Window* createWindow(std::string, int, int);
static SDL_Surface* loadImage(std::string, SDL_PixelFormat*);
static TTF_Font* loadFont(std::string, short int, Uint8);
static void print(SDL_Surface*, char*, int, int, TTF_Font*, SDL_Color);
static bool collision(SDL_Rect, SDL_Rect);
};
#endif