21 #ifndef GF_TILE_LAYER_H    22 #define GF_TILE_LAYER_H    27 #include "Portability.h"    28 #include "Transformable.h"    29 #include "VertexArray.h"    30 #include "VertexBuffer.h"    33 #ifndef DOXYGEN_SHOULD_SKIP_THIS    67     static constexpr 
int NoTile = -1;
    93     void setTexture(
const Texture& texture);
   116       return m_texture != 
nullptr;
   134     void setTileSize(
Vector2u tileSize);
   153       setMargin({ margin, margin });
   181       setSpacing({ spacing, spacing });
   218     void setBlockSize(
Vector2u blockSize);
   247     int getTile(
Vector2u position) 
const;
   277     RectF getLocalBounds() 
const;
   289     void setAnchor(
Anchor anchor);
   311     void updateGeometry();
   328 #ifndef DOXYGEN_SHOULD_SKIP_THIS   333 #endif // GF_TILE_LAYER_H 
A set of primitives. 
Definition: VertexArray.h:65
 
bool hasTexture() const
Check if a texture is set. 
Definition: TileLayer.h:115
 
Base class for all render targets (window, texture, ...) 
Definition: RenderTarget.h:66
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
Data in the graphics memory. 
Definition: VertexBuffer.h:70
 
void setSpacing(unsigned spacing)
Set the spacing of the tileset. 
Definition: TileLayer.h:180
 
void setMargin(unsigned margin)
Set the margin of the tileset. 
Definition: TileLayer.h:152
 
A texture for colored images. 
Definition: Texture.h:339
 
Vector2u getTileSize() const
Get the tile size in the tileset. 
Definition: TileLayer.h:142
 
Vector2u getSpacing() const
Get the spacing of the tileset. 
Definition: TileLayer.h:198
 
The namespace for gf classes. 
Definition: Action.h:35
 
const Texture & getTexture() const
Get the source texture of the tileset. 
Definition: TileLayer.h:104
 
Vector2u getMargin() const
Get the margin of the tileset. 
Definition: TileLayer.h:170
 
A tile layer. 
Definition: TileLayer.h:62
 
Anchor
An anchor of a box. 
Definition: Anchor.h:38