Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
TileSpec Struct Reference

#include <tile.h>

+ Collaboration diagram for TileSpec:

Public Member Functions

 TileSpec ()=default
 

Public Attributes

bool world_aligned = false
 If true, the tile rotation is ignored.
 
TileRotation rotation = TileRotation::None
 Tile rotation.
 
u8 emissive_light = 0
 This much light does the tile emit.
 
TileLayer layers [MAX_TILE_LAYERS]
 The first is base texture, the second is overlay.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TileSpec()

TileSpec::TileSpec ( )
default

Member Data Documentation

◆ emissive_light

u8 TileSpec::emissive_light = 0

This much light does the tile emit.

◆ layers

◆ rotation

◆ world_aligned

bool TileSpec::world_aligned = false

If true, the tile rotation is ignored.

Referenced by MeshCollector::append(), MeshCollector::append(), getNodeTile(), and postProcessNodeMesh().


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