24 #include "Portability.h" 29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 55 void setTexture(
const Texture& texture);
78 return m_texture !=
nullptr;
115 setMargin({ margin, margin });
143 setSpacing({ spacing, spacing });
197 RectF computeTextureCoords(
int tile)
const;
219 #ifndef DOXYGEN_SHOULD_SKIP_THIS 224 #endif // GF_TILESET_H void setMargin(int margin)
Set the margin of the tileset.
Definition: Tileset.h:114
Vector2i getMargin() const
Get the margin of the tileset.
Definition: Tileset.h:132
void setSpacing(int spacing)
Set the spacing of the tileset.
Definition: Tileset.h:142
A tileset.
Definition: Tileset.h:39
bool hasTexture() const
Check if a texture is set.
Definition: Tileset.h:77
Vector2i getTileSize() const
Get the tile size in the tileset.
Definition: Tileset.h:104
A texture for colored images.
Definition: Texture.h:309
const Texture & getTexture() const
Get the source texture of the tileset.
Definition: Tileset.h:66
Vector2i getSize() const
Get the size of the tileset.
Definition: Tileset.h:187
The namespace for gf classes.
Definition: Action.h:35
Vector2i getOffset() const
Get the offset of the tileset.
Definition: Tileset.h:178
Vector2i getSpacing() const
Get the spacing of the tileset.
Definition: Tileset.h:160