]> git.localhorst.tv Git - orbi.git/blobdiff - src/graphics/Canvas.h
rotatable arm for character entities
[orbi.git] / src / graphics / Canvas.h
index 021bcedff936c4f5d2655ff977c2b9f80e26592b..fdcc5a03d840b18f34c9bb4af18758d069eff916 100644 (file)
@@ -2,6 +2,7 @@
 #define ORBI_CANVAS_H_
 
 #include "Color.h"
+#include "Rect.h"
 #include "Texture.h"
 #include "Vector.h"
 
@@ -44,8 +45,16 @@ public:
        void Outline();
 
        void Line(Vector<int> from, Vector<int> to);
-       void FillRect(Vector<int> pos, Vector<int> size);
-       void OutlineRect(Vector<int> pos, Vector<int> size);
+       void FillRect(Rect<int>);
+       void OutlineRect(Rect<int>);
+       void OutlineRectRot(Rect<float>, Vector<float> origin, float rot);
+
+       void FillRect(Vector<int> pos, Vector<int> size) {
+               FillRect(Rect<int>(pos, size));
+       }
+       void OutlineRect(Vector<int> pos, Vector<int> size) {
+               OutlineRect(Rect<int>(pos, size));
+       }
 
        void Dot(Vector<int> pos);
        void Cross(Vector<int> pos, int extent);