| CRM64Pro GDK v0.15.0 A free cross-platform game development kit built on top of SDL 3.0

Loading...
Searching...
No Matches
CRM64Pro::Tile
Graphics modules » Tile

Tile Object class. More...

## Detailed Description

Tile Object class.

## Public Member Functions
bool | info (Sint32 iMode=0) override
| Request Tile object information.
const string & | getName () const override
| Get the name.
Uint32 | getID () const override
| Get the ID.
Sint32 | assignImage (Sint32 idImage, Sint32 iOwnership=0)
| Assign an Image to this tile.
Sint32 | getImage () const
| Get the assigned Image of this tile.
bool | setOffset (Sint32 iTSMode, Sint32 iX, Sint32 iY)
| Set tileset mode and offset.
bool | getOffset (Sint32 *iX, Sint32 *iY)
| Get the tile offsets (tileset attributes).
bool | setPosition (float fX, float fY)
| Set the tile position.
float | getX () const
| Get the tile X position.
float | getY () const
| Get the tile Y position.
Sint32 | getTileCount (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, float fScaleX=1.0f, float fScaleY=1.0f, const double dAngle=0.0, const SDL_FPoint *poCenter=nullptr, const SDL_FlipMode rf=SDL_FLIP_NONE, Sint32 idRes=0)
| Render the tile with extended attributes.
Sint32 | save (const string &sCDCFile, const string &sResourceName="")
| Save the tile to a CDC file.
Sint32 | save (const Sint32 idCDC, const string &sResourceName="")
| Save the tile to a CDC file.