- Real x; Real y; Real w; Real h;
- //Rect() = default; // Needed so we can fread/fwrite this struct
- Rect(Real _x=0, Real _y=0, Real _w=1, Real _h=1) : x(_x), y(_y), w(_w), h(_h) {}
+ T x; T y; T w; T h;
+ //TRect() = default; // Needed so we can fread/fwrite this struct
+ TRect(T _x=0, T _y=0, T _w=1, T _h=1) : x(_x), y(_y), w(_w), h(_h) {}
+ template <class B> TRect(const TRect<B> & cpy) : x(T(cpy.x)), y(T(cpy.y)), w(T(cpy.w)), h(T(cpy.h)) {}
+