From 2cc21176467d4501adb7bfb9ee03eb9a2a7d14f2 Mon Sep 17 00:00:00 2001 From: majortom6 Date: Sun, 19 Feb 2017 08:06:37 -0600 Subject: -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 --- inc/rectangle.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 inc/rectangle.hpp (limited to 'inc/rectangle.hpp') 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 -- cgit v1.2.3