#include <tile.h>
Public Member Functions | |
TileSpec ()=default | |
bool | isTileable (const TileSpec &other) const |
Public Attributes | |
bool | world_aligned = false |
If true, the tile rotation is ignored. More... | |
u8 | rotation = 0 |
Tile rotation. More... | |
u8 | emissive_light = 0 |
This much light does the tile emit. More... | |
TileLayer | layers [MAX_TILE_LAYERS] |
The first is base texture, the second is overlay. More... | |
Defines a face of a node. May have up to two layers.
|
default |
|
inline |
Returns true if this tile can be merged with the other tile.
References emissive_light, layers, MAX_TILE_LAYERS, and rotation.
Referenced by updateFastFaceRow().
u8 TileSpec::emissive_light = 0 |
This much light does the tile emit.
Referenced by getTileInfo(), isTileable(), and makeFastFace().
TileLayer TileSpec::layers[MAX_TILE_LAYERS] |
The first is base texture, the second is overlay.
Referenced by ContentFeatures::~ContentFeatures(), MeshCollector::append(), MapblockMeshGenerator::drawFencelikeNode(), MapblockMeshGenerator::drawGlasslikeFramedNode(), getItemMesh(), ParticleManager::getNodeParticleParams(), getNodeTileN(), MapblockMeshGenerator::getSpecialTile(), getTileInfo(), isTileable(), postProcessNodeMesh(), WieldMeshSceneNode::setItem(), and MapblockMeshGenerator::useTile().
u8 TileSpec::rotation = 0 |
Tile rotation.
Referenced by MapblockMeshGenerator::drawCuboid(), MapblockMeshGenerator::drawFencelikeNode(), getNodeTile(), isTileable(), and makeFastFace().
bool TileSpec::world_aligned = false |
If true, the tile rotation is ignored.
Referenced by MeshCollector::append(), fillTileAttribs(), getNodeTile(), makeFastFace(), postProcessNodeMesh(), and ContentFeatures::updateTextures().