CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
|
Inherits CRM64Pro::ObjectBase.
Public Member Functions | |
Sint32 | info (Sint32 iMode=0) |
Request Tile object information. | |
Sint32 | getName (string &sName) |
Get the name. | |
Uint32 | getID () |
Get the ID. | |
Sint32 | assignImage (Sint32 idImage, Sint32 iOwnership=0) |
Assign an Image to this tile. | |
Sint32 | getImage () |
Get the assigned Image of this tile. | |
Sint32 | setOffset (Sint32 iTSMode, Sint32 iX, Sint32 iY) |
Set the tile offsets for creating a tileset (also enable/disable tileset mode). | |
Sint32 | getOffset (Sint32 *iX, Sint32 *iY) |
Get the tile offsets (tileset attributes). | |
Sint32 | setPosition (Sint32 iX, Sint32 iY) |
Set the tile position. | |
Sint32 | getPosition (Sint32 *iX, Sint32 *iY) |
Get the tile position. | |
Sint32 | getNumTiles (Sint32 *iX=nullptr, Sint32 *iY=nullptr) |
Get the number of tiles. | |
Sint32 | render (Sint32 iTS=1, Sint32 idRes=0) |
Render the tile. | |
Sint32 | renderEx (Sint32 iTS=1, const double dAngle=0.0, const SDL_Point *poCenter=nullptr, const SDL_FlipMode rf=SDL_FLIP_NONE, Sint32 idRes=0) |
Render the tile. | |
Sint32 | save (const string &sFileCDC) |
Save the tile to a CDC file. | |
Sint32 | save (Sint32 idCDC) |
Save the tile to a CDC file. | |
Tile Object class.