X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fobjectrenderer.h;fp=src%2Fobjectrenderer.h;h=e43e3b9bdc4998fbc2141a3f11fb01d6f97f1f7c;hp=66daafb7824b48486959a11d7405e171257f1b6e;hb=35f1190c8c8036ed11180656769cf0c1cbf7c2b3;hpb=a69d8466e4ad4dd92488798582e680ae31029038 diff --git a/src/objectrenderer.h b/src/objectrenderer.h index 66daafb..e43e3b9 100644 --- a/src/objectrenderer.h +++ b/src/objectrenderer.h @@ -75,9 +75,11 @@ namespace IPDF int64_t x; int64_t y; int64_t w; int64_t h; PixelBounds(const Rect & bounds) : x(Double(bounds.x)), y(Double(bounds.y)), w(Double(bounds.w)), h(Double(bounds.h)) {} }; + + typedef std::pair PixelPoint; static Rect CPURenderBounds(const Rect & bounds, const View & view, const CPURenderTarget & target); - static std::pair CPUPointLocation(const std::pair & point, const View & view, const CPURenderTarget & target); + static PixelPoint CPUPointLocation(const Vec2 & point, const View & view, const CPURenderTarget & target); static void SaveBMP(const CPURenderTarget & target, const char * filename);