]> git.localhorst.tv Git - l2e.git/blob - src/sdl/utility.h
295877ff9cc314be4df10ff6df8313acdc153d43
[l2e.git] / src / sdl / utility.h
1 #ifndef SDL_UTILITY_H_
2 #define SDL_UTILITY_H_
3
4 #include "../math/Vector.h"
5 #include <SDL.h>
6
7 namespace sdl {
8
9 void HorizontalLine(SDL_Surface *dst, const math::Vector<int> &position, unsigned int length, Uint32 color);
10 void VerticalLine(SDL_Surface *dst, const math::Vector<int> &position, unsigned int length, Uint32 color);
11
12 void OutlineRect(SDL_Surface *dst, const math::Vector<int> &from, const math::Vector<int> &to, Uint32 color);
13 void OutlineRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);
14
15 }
16
17 #endif /* SDL_UTILITY_H_ */