3 |
|
|
4 |
#ifndef PX_SDL_HH |
#ifndef PX_SDL_HH |
5 |
#define PX_SDL_HH |
#define PX_SDL_HH |
6 |
|
|
7 |
|
#include "geom.hh" |
8 |
#include "SDL.h" |
#include "SDL.h" |
9 |
|
|
10 |
namespace sdl |
namespace sdl |
31 |
// that none of the specialized methods above decided to handle. |
// that none of the specialized methods above decided to handle. |
32 |
virtual bool on_event(SDL_Event &e) { return false; } |
virtual bool on_event(SDL_Event &e) { return false; } |
33 |
}; |
}; |
34 |
|
|
35 |
|
inline void fill_rect(SDL_Rect &s,const px::Rect &r) { |
36 |
|
s.x = r.x; s.y = r.y; |
37 |
|
s.w = r.w; s.h = r.h; |
38 |
|
} |
39 |
|
|
40 |
} |
} |
41 |
#endif |
#endif |