From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2ImageObj.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/T2DLL/T2ImageObj.h') diff --git a/src/T2DLL/T2ImageObj.h b/src/T2DLL/T2ImageObj.h index b954df8..a2cde9d 100644 --- a/src/T2DLL/T2ImageObj.h +++ b/src/T2DLL/T2ImageObj.h @@ -46,20 +46,20 @@ struct ObjectData { SubPartData subParts[4]; }; -class DLL_EXPORT T2ImageObj { +class AFX_EXT_CLASS T2ImageObj { public: T2ImageObj(); virtual ~T2ImageObj(); void AddObject(HINSTANCE instance, unsigned int resourceID, T2BitImage* image); void AddObject(const char* name, int pattern, T2BitImage& image, const RECT* rect, BOOL transparent, BOOL halftoneMode); void AddObject(int id, int pattern, T2BitImage& image, const RECT* rect, BOOL transparent, BOOL halftoneMode); - int FindObject(int id, int pattern, int grade, int span, int offset); - int FindObject(const char* name, int pattern, int grade, int span, int offset); + int FindObject(int id, int pattern = -1, int grade = 0, int span = 0, int offset = 255); + int FindObject(const char* name, int pattern = -1, int grade = 0, int span = 0, int offset = 255); void EnumParts(int, int, PARTSLIST*, int*); BOOL WithRoof(int index); BOOL WithFloor(int index); - void DrawObject(T2BitImage* image, int index, RECT rect, int factor, int foreGndColor); - void DrawObject(CDC* dc, int index, RECT rect, int factor, int foreGndColor); + void DrawObject(T2BitImage* image, int index, RECT rect, int factor = 0, int foreGndColor = -1); + void DrawObject(CDC* dc, int index, RECT rect, int factor = 0, int foreGndColor = -1); BOOL GetObjectSize(int index, SIZE* outSize); T2BitImage* GetObjectImage(int index, RECT& outRect); -- cgit v1.2.3