]> git.localhorst.tv Git - l2e.git/blob - src/sdl/utility.h
d63c78f59f98a77746bfe6f26d31783a0260252f
[l2e.git] / src / sdl / utility.h
1 /*
2  * utility.h
3  *
4  *  Created on: Oct 6, 2012
5  *      Author: holy
6  */
7
8 #ifndef SDL_UTILITY_H_
9 #define SDL_UTILITY_H_
10
11 #include "../geometry/Vector.h"
12 #include <SDL.h>
13
14 namespace sdl {
15
16 void HorizontalLine(SDL_Surface *dst, const geometry::Vector<int> &position, unsigned int length, Uint32 color);
17 void VerticalLine(SDL_Surface *dst, const geometry::Vector<int> &position, unsigned int length, Uint32 color);
18
19 void OutlineRect(SDL_Surface *dst, const geometry::Vector<int> &from, const geometry::Vector<int> &to, Uint32 color);
20 void OutlineRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);
21
22 }
23
24 #endif /* SDL_UTILITY_H_ */