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