summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ImageObj.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2ImageObj.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-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);