Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
IWritableTextureSource Class Referenceabstract

#include <texturesource.h>

+ Inheritance diagram for IWritableTextureSource:
+ Collaboration diagram for IWritableTextureSource:

Public Member Functions

 IWritableTextureSource ()=default
 
virtual ~IWritableTextureSource ()=default
 
virtual u32 getTextureId (const std::string &name)=0
 
virtual std::string getTextureName (u32 id)=0
 
virtual video::ITexture * getTexture (u32 id)=0
 
virtual video::ITexture * getTexture (const std::string &name, u32 *id=nullptr)=0
 
virtual bool isKnownSourceImage (const std::string &name)=0
 
virtual void processQueue ()=0
 
virtual void insertSourceImage (const std::string &name, video::IImage *img)=0
 
virtual void rebuildImagesAndTextures ()=0
 
virtual video::ITexture * getNormalTexture (const std::string &name)=0
 
virtual video::SColor getTextureAverageColor (const std::string &name)=0
 
- Public Member Functions inherited from ITextureSource
 ITextureSource ()=default
 
virtual ~ITextureSource ()=default
 
virtual video::ITexture * getTextureForMesh (const std::string &name, u32 *id=nullptr)=0
 
virtual PalettegetPalette (const std::string &name)=0
 
- Public Member Functions inherited from ISimpleTextureSource
 ISimpleTextureSource ()=default
 
virtual ~ISimpleTextureSource ()=default
 

Constructor & Destructor Documentation

◆ IWritableTextureSource()

IWritableTextureSource::IWritableTextureSource ( )
default

◆ ~IWritableTextureSource()

virtual IWritableTextureSource::~IWritableTextureSource ( )
virtualdefault

Member Function Documentation

◆ getNormalTexture()

virtual video::ITexture * IWritableTextureSource::getNormalTexture ( const std::string & name)
pure virtual

Implements ITextureSource.

Implemented in TextureSource.

◆ getTexture() [1/2]

virtual video::ITexture * IWritableTextureSource::getTexture ( const std::string & name,
u32 * id = nullptr )
pure virtual

Implements ITextureSource.

Implemented in TextureSource.

◆ getTexture() [2/2]

virtual video::ITexture * IWritableTextureSource::getTexture ( u32 id)
pure virtual

Implements ITextureSource.

Implemented in TextureSource.

Referenced by Game::createClient().

+ Here is the caller graph for this function:

◆ getTextureAverageColor()

virtual video::SColor IWritableTextureSource::getTextureAverageColor ( const std::string & name)
pure virtual

Implements ITextureSource.

Implemented in TextureSource.

◆ getTextureId()

virtual u32 IWritableTextureSource::getTextureId ( const std::string & name)
pure virtual

Implements ITextureSource.

Implemented in TextureSource.

◆ getTextureName()

virtual std::string IWritableTextureSource::getTextureName ( u32 id)
pure virtual

Implements ITextureSource.

Implemented in TextureSource.

◆ insertSourceImage()

virtual void IWritableTextureSource::insertSourceImage ( const std::string & name,
video::IImage * img )
pure virtual

Implemented in TextureSource.

Referenced by Client::loadMedia().

+ Here is the caller graph for this function:

◆ isKnownSourceImage()

virtual bool IWritableTextureSource::isKnownSourceImage ( const std::string & name)
pure virtual

Implements ITextureSource.

Implemented in TextureSource.

◆ processQueue()

virtual void IWritableTextureSource::processQueue ( )
pure virtual

Implemented in TextureSource.

Referenced by Game::processQueues(), and Game::shutdown().

+ Here is the caller graph for this function:

◆ rebuildImagesAndTextures()

virtual void IWritableTextureSource::rebuildImagesAndTextures ( )
pure virtual

Implemented in TextureSource.

Referenced by Client::afterContentReceived().

+ Here is the caller graph for this function:

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