Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Public Attributes | Static Public Attributes | List of all members
gf::TmxWangTile Struct Reference

A wang tile. More...

#include <gf/Tmx.h>

Public Attributes

int tileid
 The id of the tile. More...
 
std::array< int, 8 > wangid
 the wang colors of the corners and edges (top, top-right, right, bottom-right, bottom, bottom-left, left, top-left) More...
 

Static Public Attributes

static constexpr std::size_t Top = 0
 Index of the top color. More...
 
static constexpr std::size_t TopRight = 1
 Index of the top-right color. More...
 
static constexpr std::size_t Right = 2
 Index of the right color. More...
 
static constexpr std::size_t BottomRight = 3
 Index of the bottom-right color. More...
 
static constexpr std::size_t Bottom = 4
 Index of the bottom color. More...
 
static constexpr std::size_t BottomLeft = 5
 Index of the bottom-left color. More...
 
static constexpr std::size_t Left = 6
 Index of the left color. More...
 
static constexpr std::size_t TopLeft = 7
 Index of the top-left color. More...
 

Detailed Description

A wang tile.

See also
gf::TmxWangSet

Member Data Documentation

◆ Bottom

constexpr std::size_t gf::TmxWangTile::Bottom = 4
staticconstexpr

Index of the bottom color.

◆ BottomLeft

constexpr std::size_t gf::TmxWangTile::BottomLeft = 5
staticconstexpr

Index of the bottom-left color.

◆ BottomRight

constexpr std::size_t gf::TmxWangTile::BottomRight = 3
staticconstexpr

Index of the bottom-right color.

◆ Left

constexpr std::size_t gf::TmxWangTile::Left = 6
staticconstexpr

Index of the left color.

◆ Right

constexpr std::size_t gf::TmxWangTile::Right = 2
staticconstexpr

Index of the right color.

◆ tileid

int gf::TmxWangTile::tileid

The id of the tile.

◆ Top

constexpr std::size_t gf::TmxWangTile::Top = 0
staticconstexpr

Index of the top color.

◆ TopLeft

constexpr std::size_t gf::TmxWangTile::TopLeft = 7
staticconstexpr

Index of the top-left color.

◆ TopRight

constexpr std::size_t gf::TmxWangTile::TopRight = 1
staticconstexpr

Index of the top-right color.

◆ wangid

std::array<int, 8> gf::TmxWangTile::wangid

the wang colors of the corners and edges (top, top-right, right, bottom-right, bottom, bottom-left, left, top-left)