21 #ifndef GF_TILE_LAYER_H
22 #define GF_TILE_LAYER_H
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
190 void updateGeometry();
207 #ifndef DOXYGEN_SHOULD_SKIP_THIS
A two-dimensional array.
Definition: Array2D.h:55
Vector< unsigned, 2 > Vector2u
A unsigned vector with 2 components.
Definition: Vector.h:795
A set of primitives.
Definition: VertexArray.h:65
Rect< unsigned > RectU
A unsigned rectangle.
Definition: Rect.h:318
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:65
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:81
unsigned getMargin() const
Get the margin of the tileset.
Definition: TileLayer.h:138
void setSpacing(unsigned spacing)
Set the spacing of the tileset.
void setMargin(unsigned margin)
Set the margin of the tileset.
A texture for colored images.
Definition: Texture.h:317
static constexpr int NoTile
A constant meaning that there is no tile.
Definition: TileLayer.h:64
const Texture * getTexture() const
Get the source texture of the tileset.
Definition: TileLayer.h:102
void setTile(Vector2u position, int tile)
Set a tile.
A tile layer.
Definition: TileLayer.h:59
Vector2u getTileSize() const
Get the tile size in the tileset.
Definition: TileLayer.h:120
TileLayer(Vector2u layerSize)
Constructor.
virtual void draw(RenderTarget &target, RenderStates states) override
Draw the object to a render target.
int getTile(Vector2u position) const
Get a tile.
void setTileSize(Vector2u tileSize)
Set the tile size in the tileset.
void setTexture(const Texture &texture)
Change the source texture of the tileset.
#define GF_API
Definition: Portability.h:35
unsigned getSpacing() const
Get the spacing of the tileset.
Definition: TileLayer.h:156