Gamedev Framework (gf)  0.19.0
A C++17 framework for 2D games
Classes | Enumerations | Functions
Tiles and Tilelayers

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...
 

Detailed Description

Tiles and tilelayers.

Enumeration Type Documentation

◆ Flip

enum gf::Flip : uint8_t
strong

A flag to indicate how to flip a tile.

See also
gf::TileLayer
Enumerator
Horizontally 

The tile is flipped horizontally.

Vertically 

The tile is flipped vertically.

Diagonally 

The tile is flipped anti-diagonally.

◆ TileOrientation

enum gf::TileOrientation : uint8_t
strong

The orientation of the tile.

See also
gf::TileLayer
Enumerator
Unknown 

An unknown orientation.

Orthogonal 

An orthogonal orientation.

Isometric 

An isometric orientation.

Staggered 

A staggered orientation.

Hexagonal 

A hexagonal orientation.

Function Documentation

◆ makeTileLayer()

GF_GRAPHICS_API TileLayer gf::makeTileLayer ( const TmxLayers map,
const TmxTileLayer layer,
ResourceManager resources 
)

Create a tile layer object from a TMX tile layer.

Parameters
mapThe TMX map
layerThe TMX tile layer
resourcesThe resource manager
Returns
A tile layer object