]> git.localhorst.tv Git - l2e.git/blobdiff - src/sdl/utility.h
added some graphics primitive functions
[l2e.git] / src / sdl / utility.h
diff --git a/src/sdl/utility.h b/src/sdl/utility.h
new file mode 100644 (file)
index 0000000..d63c78f
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * utility.h
+ *
+ *  Created on: Oct 6, 2012
+ *      Author: holy
+ */
+
+#ifndef SDL_UTILITY_H_
+#define SDL_UTILITY_H_
+
+#include "../geometry/Vector.h"
+#include <SDL.h>
+
+namespace sdl {
+
+void HorizontalLine(SDL_Surface *dst, const geometry::Vector<int> &position, unsigned int length, Uint32 color);
+void VerticalLine(SDL_Surface *dst, const geometry::Vector<int> &position, unsigned int length, Uint32 color);
+
+void OutlineRect(SDL_Surface *dst, const geometry::Vector<int> &from, const geometry::Vector<int> &to, Uint32 color);
+void OutlineRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);
+
+}
+
+#endif /* SDL_UTILITY_H_ */