![]() |
Gamedev Framework (gf)
0.19.0
A C++17 framework for 2D games
|
Tiles and tilelayers. More...
Classes | |
class | gf::TileLayer |
A tile layer. More... | |
class | gf::TileProperties |
The properties of tiles. More... | |
class | gf::GenericTileProperties< Helper > |
The generic properties of tiles. More... | |
class | gf::Tileset |
A tileset. More... | |
Enumerations | |
enum | gf::TileOrientation : uint8_t { gf::TileOrientation::Unknown = 0x00, gf::TileOrientation::Orthogonal = 0x01, gf::TileOrientation::Isometric = 0x02, gf::TileOrientation::Staggered = 0x03, gf::TileOrientation::Hexagonal = 0x04 } |
The orientation of the tile. More... | |
enum | gf::Flip : uint8_t { gf::Flip::Horizontally = 0x01, gf::Flip::Vertically = 0x02, gf::Flip::Diagonally = 0x04 } |
A flag to indicate how to flip a tile. More... | |
Functions | |
GF_GRAPHICS_API TileLayer | gf::makeTileLayer (const TmxLayers &map, const TmxTileLayer &layer, ResourceManager &resources) |
Create a tile layer object from a TMX tile layer. More... | |
Tiles and tilelayers.
|
strong |
A flag to indicate how to flip a tile.
Enumerator | |
---|---|
Horizontally | The tile is flipped horizontally. |
Vertically | The tile is flipped vertically. |
Diagonally | The tile is flipped anti-diagonally. |
|
strong |
The orientation of the tile.
Enumerator | |
---|---|
Unknown | An unknown orientation. |
Orthogonal | An orthogonal orientation. |
Isometric | An isometric orientation. |
Staggered | A staggered orientation. |
Hexagonal | A hexagonal orientation. |
GF_GRAPHICS_API TileLayer gf::makeTileLayer | ( | const TmxLayers & | map, |
const TmxTileLayer & | layer, | ||
ResourceManager & | resources | ||
) |
Create a tile layer object from a TMX tile layer.
map | The TMX map |
layer | The TMX tile layer |
resources | The resource manager |