Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
TextureOverrideSource Class Reference

Class that provides texture override information from a texture pack. More...

#include <texture_override.h>

+ Collaboration diagram for TextureOverrideSource:

Public Member Functions

 TextureOverrideSource (const std::string &filepath)
 
std::vector< TextureOverridegetItemTextureOverrides () const
 Get all overrides that apply to item definitions.
 
std::vector< TextureOverridegetNodeTileOverrides () const
 Get all overrides that apply to node definitions.
 

Private Attributes

std::vector< TextureOverridem_overrides
 

Detailed Description

Class that provides texture override information from a texture pack.

Constructor & Destructor Documentation

◆ TextureOverrideSource()

TextureOverrideSource::TextureOverrideSource ( const std::string & filepath)

References TextureOverride::id, INVALID, m_overrides, open_ifstream(), override_cast, override_LUT, stoi, str_split(), TextureOverride::target, TextureOverride::texture, trim(), U8_MAX, warningstream, and TextureOverride::world_scale.

+ Here is the call graph for this function:

Member Function Documentation

◆ getItemTextureOverrides()

std::vector< TextureOverride > TextureOverrideSource::getItemTextureOverrides ( ) const

Get all overrides that apply to item definitions.

References ITEM_TARGETS, and m_overrides.

Referenced by Client::afterContentReceived(), and Server::init().

+ Here is the caller graph for this function:

◆ getNodeTileOverrides()

std::vector< TextureOverride > TextureOverrideSource::getNodeTileOverrides ( ) const

Get all overrides that apply to node definitions.

References m_overrides, and NODE_TARGETS.

Referenced by Client::afterContentReceived(), and Server::init().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_overrides

std::vector<TextureOverride> TextureOverrideSource::m_overrides
private

The documentation for this class was generated from the following files: