-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCTileGroup.h
70 lines (54 loc) · 1.93 KB
/
CTileGroup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include "OP2Editor.h"
#include "CTileSetManager.h"
class CTileGroup : public TileGroup
{
public:
// IUnknown
// ********
ULONG __stdcall AddRef();
ULONG __stdcall Release();
HRESULT __stdcall QueryInterface(REFIID riid, void** ppv);
// TileGroup
// *********
// [propget]
HRESULT STDMETHODCALLTYPE get_TileWidth(
/* [retval][out] */ int __RPC_FAR *tileWidth);
// [propget]
HRESULT STDMETHODCALLTYPE get_TileHeight(
/* [retval][out] */ int __RPC_FAR *tileHeight);
// [propget]
HRESULT STDMETHODCALLTYPE get_TileSetManager(
/* [retval][out] */ TileSetManager __RPC_FAR *__RPC_FAR *tileSetManager);
// [propget]
HRESULT STDMETHODCALLTYPE get_MappingIndex(
/* [in] */ int tileX,
/* [in] */ int tileY,
/* [retval][out] */ int __RPC_FAR *tileMappingIndex);
// [propput]
HRESULT STDMETHODCALLTYPE put_MappingIndex(
/* [in] */ int tileX,
/* [in] */ int tileY,
/* [in] */ int tileMappingIndex);
HRESULT STDMETHODCALLTYPE Draw(
/* [in] */ int destDC,
/* [in] */ int sourcePixelX,
/* [in] */ int sourcePixelY,
/* [in] */ int pixelWidth,
/* [in] */ int pixelHeight);
// ISupportErrorInfo
// *****************
HRESULT STDMETHODCALLTYPE InterfaceSupportsErrorInfo(REFIID riid);
// Class specific
// **************
CTileGroup(int tileWidth, int tileHeight, CTileSetManager *tileSetManager);
CTileGroup(int tileWidth, int tileHeight, TileSetSource *tileSetSource);
~CTileGroup();
private:
ULONG m_cRef;
// Private variables
// *****************
int tileWidth; // Width of this tile group
int tileHeight; // Height of this tile group
int *tileData; // Array of mapping indexes
CTileSetManager *tileSetManager; // TileSetManager for this tile group
};