#include <SAM.h>
Inherits gedi::DynABO.
Inheritance diagram for gedi::TileABO:
Public Member Functions | |
TileABO (void) | |
TileABO (gedi::Int32 iTileWidth, gedi::Int32 iTileHeight) | |
void | SetDimensions (gedi::Int32 iTileWidth, gedi::Int32 iTileHeight) |
void | SetColorKey (gedi::UInt8 iRed, gedi::UInt8 iGreen, gedi::UInt8 iBlue) |
void | SetPosition (gedi::Int32 iX, gedi::Int32 iY) |
void | LoadImage (LPSTR lpszFilename) |
It treates each rectangular region as an animation with exactly one frame. It calculates where a tile lies in the image using the width and height information. However, since the class extends gedi::DynABO, the tiles' size, transparency, orientation, etc. can be changed.
Note unlike a conventional Mirus ABO, the ABO description is calculated from width, height information or assumed, e.g., the color key is (255,0,255).
gedi::TileABO::TileABO | ( | void | ) |
Constructor, default tile size is 32 by 32 pixels.
gedi::TileABO::TileABO | ( | gedi::Int32 | iTileWidth, | |
gedi::Int32 | iTileHeight | |||
) |
Constructor.
iTileWidth | Tile width. | |
iTileHeight | Tile height. |
void gedi::TileABO::SetDimensions | ( | gedi::Int32 | iTileWidth, | |
gedi::Int32 | iTileHeight | |||
) | [inline] |
Set tile dimensions.
iTileWidth | Tile width. | |
iTileHeight | Tile height. |
void gedi::TileABO::SetColorKey | ( | gedi::UInt8 | iRed, | |
gedi::UInt8 | iGreen, | |||
gedi::UInt8 | iBlue | |||
) |
Sets the color key for the ABO.
iRed | Red component. | |
iGreen | Green component. | |
iBlue | Blue component. |
void gedi::TileABO::SetPosition | ( | gedi::Int32 | iX, | |
gedi::Int32 | iY | |||
) | [inline] |
Sets the position of the tile where iX, iY are the upper left corner.
iX | X coordinate. | |
iY | Y coordinate. |
void gedi::TileABO::LoadImage | ( | LPSTR | lpszFilename | ) |
Loads the image.
lpszFilename | Name of file. |