CRM32Pro SDK  v5.22
Classes | Macros
MODULE 7: CTile v2.20, tile engine class.

Detailed Description


CTile supports all stuff related to manage and draw tiles:
- tileset with independent width and height
- easy to set a position
- alpha per surface and colorkey
- alpha per pixel - special effects: mirror, flip, rotated 90, 180 and 270 degrees

We advice you to use EditorDPF to modify/add/delete tiles and its features.

Classes

class  CRM32Pro_CTile
 CTile. More...
 

Macros

#define GetTileEffect(x)   (x & ~0x1FFFFFFF)
 Macro to get the tile special effects.
 
#define ResetTileEffect(x)   (x & ~0xE0000000)
 Macro to reset the tile special effects.
 
#define TILEFFECT_FLIP   0x40000000
 Used with Draw() method (OR'ed with the iTID) for rendering the tile using a flip effect.
 
#define TILEFFECT_MIRROR   0x80000000
 Used with Draw() method (OR'ed with the iTID) for rendering the tile using a mirror effect.
 
#define TILEFFECT_ROTATE180   0xC0000000
 Used with Draw() method (OR'ed with the iTID) for rendering the tile using a 180 degrees rotation effect.
 
#define TILEFFECT_ROTATE270   0x60000000
 Used with Draw() method (OR'ed with the iTID) for rendering the tile using a 270 degrees rotation effect.
 
#define TILEFFECT_ROTATE90   0xA0000000
 Used with Draw() method (OR'ed with the iTID) for rendering the tile using a 90 degrees rotation effect.