Minetest  5.4.0
TileSpec Struct Reference

#include <tile.h>

+ Collaboration diagram for TileSpec:

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

Detailed Description

Defines a face of a node. May have up to two layers.

Constructor & Destructor Documentation

◆ TileSpec()

TileSpec::TileSpec ( )
default

Member Function Documentation

◆ isTileable()

bool TileSpec::isTileable ( const TileSpec other) const
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().

+ Here is the caller graph for this function:

Member Data Documentation

◆ emissive_light

u8 TileSpec::emissive_light = 0

This much light does the tile emit.

Referenced by getTileInfo(), isTileable(), and makeFastFace().

◆ layers

◆ rotation

◆ world_aligned

bool TileSpec::world_aligned = false

The documentation for this struct was generated from the following file: