summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ImageObj.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2ImageObj.h')
-rw-r--r--src/T2DLL/T2ImageObj.h10
1 files changed, 5 insertions, 5 deletions
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);