24 #include "GraphicsApi.h"    29 #ifndef DOXYGEN_SHOULD_SKIP_THIS    64     void setTexture(
const Texture& texture);
    87       return m_texture != 
nullptr;
   105     void setTileSize(
Vector2i tileSize);
   124       setMargin({ margin, margin });
   152       setSpacing({ spacing, spacing });
   206     RectF computeTextureCoords(
int tile) 
const;
   228 #ifndef DOXYGEN_SHOULD_SKIP_THIS   233 #endif // GF_TILESET_H void setMargin(int margin)
Set the margin of the tileset. 
Definition: Tileset.h:123
Vector2i getMargin() const
Get the margin of the tileset. 
Definition: Tileset.h:141
void setSpacing(int spacing)
Set the spacing of the tileset. 
Definition: Tileset.h:151
A tileset. 
Definition: Tileset.h:48
bool hasTexture() const
Check if a texture is set. 
Definition: Tileset.h:86
Vector2i getTileSize() const
Get the tile size in the tileset. 
Definition: Tileset.h:113
A texture for colored images. 
Definition: Texture.h:313
const Texture & getTexture() const
Get the source texture of the tileset. 
Definition: Tileset.h:75
Vector2i getSize() const
Get the size of the tileset. 
Definition: Tileset.h:196
The namespace for gf classes. 
Definition: Action.h:35
Vector2i getOffset() const
Get the offset of the tileset. 
Definition: Tileset.h:187
Vector2i getSpacing() const
Get the spacing of the tileset. 
Definition: Tileset.h:169