-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIncludes.h
45 lines (34 loc) · 984 Bytes
/
Includes.h
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
41
42
43
44
45
/*****************************************************************************
Yihsiang Liow
Copyright
****************************************************************************/
/*****************************************************************************
This header file contains the header files for all the SDL related
simplification layer.
This header file also contains some useful inline functions derived from SDL.
*****************************************************************************/
#ifndef INCLUDES_H
#define INCLUDES_H
#include "SDL.h"
#include "Surface.h"
#include "SingletonSurface.h"
#include "Event.h"
#include "Image.h"
#include "Rect.h"
#include "Color.h"
#include "Sound.h"
#include "Font.h"
inline int getTicks()
{
return SDL_GetTicks();
}
inline void delay(int t)
{
SDL_Delay(t);
}
typedef Uint8* KeyPressed;
inline KeyPressed get_keypressed()
{
return SDL_GetKeyState( NULL );
}
#endif