summaryrefslogtreecommitdiff
path: root/inc/rectangle.hpp
diff options
context:
space:
mode:
authormajortom6 <tombarrett@siu.edu>2017-02-19 08:06:37 -0600
committerTom Barrett <tombarrett@siu.edu>2017-03-07 13:23:41 -0600
commit2cc21176467d4501adb7bfb9ee03eb9a2a7d14f2 (patch)
treee12ceac7024bdc697f1ed4adc1a1ece4a82489fc /inc/rectangle.hpp
parent74c6854fd8dcbaee736ac0421805ff1e03c4a1e2 (diff)
-removed all references to sdl_rect and location and now everything now uses our own class rectangle
-standardization of tab spaces to 8 is now in effect -refractoring of graphicsobjects.hpp
Diffstat (limited to 'inc/rectangle.hpp')
-rw-r--r--inc/rectangle.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/rectangle.hpp b/inc/rectangle.hpp
new file mode 100644
index 0000000..9e5ef9b
--- /dev/null
+++ b/inc/rectangle.hpp
@@ -0,0 +1,15 @@
+#ifndef rectangle_h
+#define rectangle_h
+
+class Rectangle
+{
+ public:
+ Rectangle(){x=y=w=h=0;};
+ Rectangle(float x1, float y1, float w1, float h1){x=x1;y=y1;w=w1;h1=h;};
+ float x;
+ float y;
+ float w;
+ float h;
+};
+
+#endif