#include <texturesource.h>
◆ ITextureSource()
ITextureSource::ITextureSource |
( |
| ) |
|
|
default |
◆ ~ITextureSource()
virtual ITextureSource::~ITextureSource |
( |
| ) |
|
|
virtualdefault |
◆ getNormalTexture()
virtual video::ITexture * ITextureSource::getNormalTexture |
( |
const std::string & | name | ) |
|
|
pure virtual |
◆ getPalette()
virtual Palette * ITextureSource::getPalette |
( |
const std::string & | name | ) |
|
|
pure virtual |
Returns a palette from the given texture name. The pointer is valid until the texture source is destructed. Should be called from the main thread.
Implemented in TextureSource.
◆ getTexture() [1/2]
virtual video::ITexture * ITextureSource::getTexture |
( |
const std::string & | name, |
|
|
u32 * | id = nullptr ) |
|
pure virtual |
◆ getTexture() [2/2]
virtual video::ITexture * ITextureSource::getTexture |
( |
u32 | id | ) |
|
|
pure virtual |
Implemented in IWritableTextureSource, and TextureSource.
Referenced by ClientParticleTexture::ClientParticleTexture(), GUIChatConsole::GUIChatConsole(), RenderingEngine::draw_load_screen(), Hud::drawCrosshair(), Hud::drawItem(), Hud::drawItems(), drawItemStack(), Hud::drawLuaElements(), Minimap::drawMinimap(), Hud::drawStatbar(), getExtrudedMesh(), Minimap::getMinimapMask(), Minimap::getMinimapTexture(), WieldMeshSceneNode::setExtruded(), Sky::setMoonTexture(), and Sky::setSunTexture().
◆ getTextureAverageColor()
virtual video::SColor ITextureSource::getTextureAverageColor |
( |
const std::string & | name | ) |
|
|
pure virtual |
◆ getTextureForMesh()
virtual video::ITexture * ITextureSource::getTextureForMesh |
( |
const std::string & | name, |
|
|
u32 * | id = nullptr ) |
|
pure virtual |
Implemented in TextureSource.
Referenced by Hud::Hud(), MapBlockMesh::MapBlockMesh(), Sky::Sky(), SmokePuffCSO::SmokePuffCSO(), Sky::addTextureToSkybox(), GenericCAO::addToScene(), TestCAO::addToScene(), MapBlockMesh::animate(), getExtrudedMesh(), Sky::setMoonTexture(), Sky::setSunriseTexture(), Sky::setSunTexture(), and GenericCAO::updateTextures().
◆ getTextureId()
virtual u32 ITextureSource::getTextureId |
( |
const std::string & | name | ) |
|
|
pure virtual |
◆ getTextureName()
virtual std::string ITextureSource::getTextureName |
( |
u32 | id | ) |
|
|
pure virtual |
◆ isKnownSourceImage()
virtual bool ITextureSource::isKnownSourceImage |
( |
const std::string & | name | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: