#include <texturesource.h>
Inheritance diagram for ITextureSource:
Collaboration diagram for ITextureSource:Public Member Functions | |
| ITextureSource ()=default | |
| virtual | ~ITextureSource ()=default |
| virtual u32 | getTextureId (const std::string &image)=0 |
| Generates a texture string into a standard texture. | |
| virtual std::string | getTextureName (u32 id)=0 |
| Returns name of existing texture by ID. | |
| virtual video::ITexture * | getTexture (u32 id)=0 |
| Returns existing texture by ID. | |
| virtual video::ITexture * | addArrayTexture (const std::vector< std::string > &images, u32 *id=nullptr)=0 |
| Generates texture string(s) into an array texture. | |
| video::ITexture * | getTextureForMesh (const std::string &image, u32 *id=nullptr) |
| Generates a texture string into a standard texture Filters will be applied to make the texture suitable for mipmapping and linear filtering during rendering. | |
| virtual bool | needFilterForMesh () const =0 |
| virtual Palette * | getPalette (const std::string &image)=0 |
| Returns a palette from the given texture string. | |
| virtual bool | isKnownSourceImage (const std::string &name)=0 |
| Check if given image name exists. | |
| virtual core::dimension2du | getTextureDimensions (const std::string &image)=0 |
| Return dimensions of a texture string (will avoid actually creating the texture) | |
| virtual video::SColor | getTextureAverageColor (const std::string &image)=0 |
| Return average color of a texture string. | |
| virtual void | setImageCaching (bool enabled) |
| Enables or disables the caching of finished texture images. | |
| virtual video::ITexture * | getTexture (const std::string &name, u32 *id=nullptr)=0 |
| Generates a texture string into a standard texture. | |
Public Member Functions inherited from ISimpleTextureSource | |
| ISimpleTextureSource ()=default | |
| virtual | ~ISimpleTextureSource ()=default |
Static Public Attributes | |
| static constexpr const char * | FILTER_FOR_MESH = "^[applyfiltersformesh" |
| Filter needed for mesh-suitable textures, including leading ^. | |
|
default |
|
virtualdefault |
|
pure virtual |
Generates texture string(s) into an array texture.
Implemented in TextureSource.
Referenced by NodeVisuals::fillNodeVisuals().
Here is the caller graph for this function:
|
pure virtual |
Returns a palette from the given texture string.
The pointer is valid until the texture source is destructed. Must be called from the main thread.
Implemented in TextureSource.
Referenced by ItemVisualsManager::createItemVisuals(), and NodeVisuals::updateTextures().
Here is the caller graph for this function:
|
virtual |
Generates a texture string into a standard texture.
Implements ISimpleTextureSource.
Reimplemented in TextureSource.
|
pure virtual |
Returns existing texture by ID.
Implemented in TextureSource.
Referenced by ClientParticleTexture::ClientParticleTexture(), GUIChatConsole::GUIChatConsole(), createItemMesh(), RenderingEngine::draw_load_screen(), Hud::drawCrosshair(), Hud::drawItem(), Hud::drawItems(), drawItemStack(), Hud::drawLuaElements(), Minimap::drawMinimap(), Hud::drawStatbar(), extractTexture(), Minimap::getMinimapMask(), Minimap::getMinimapTexture(), getTextureAsImage(), getTextureForMesh(), WieldMeshSceneNode::setItem(), Sky::setMoonTexture(), and Sky::setSunTexture().
Here is the caller graph for this function:
|
pure virtual |
Return average color of a texture string.
Implemented in TextureSource.
Referenced by NodeVisuals::updateTextures().
Here is the caller graph for this function:
|
pure virtual |
Return dimensions of a texture string (will avoid actually creating the texture)
Implemented in TextureSource.
Referenced by createAnimationFrames(), Game::createClient(), and NodeVisuals::fillNodeVisuals().
Here is the caller graph for this function:
|
inline |
Generates a texture string into a standard texture Filters will be applied to make the texture suitable for mipmapping and linear filtering during rendering.
References FILTER_FOR_MESH, getTexture(), and needFilterForMesh().
Referenced by Hud::Hud(), MapBlockMesh::MapBlockMesh(), Sky::Sky(), SmokePuffCSO::SmokePuffCSO(), Sky::addTextureToSkybox(), GenericCAO::addToScene(), createAnimationFrames(), extractTexture(), setMaterialTextureAndFilters(), Sky::setMoonTexture(), Sky::setSunriseTexture(), and Sky::setSunTexture().
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
|
pure virtual |
Returns name of existing texture by ID.
Implemented in TextureSource.
|
pure virtual |
Check if given image name exists.
Implemented in TextureSource.
Referenced by GUIChatConsole::GUIChatConsole(), Hud::Hud(), getTextureAsImage(), Sky::setMoonTexture(), and Sky::setSunTexture().
Here is the caller graph for this function:
|
pure virtual |
Implemented in TextureSource.
Referenced by getTextureForMesh(), and NodeVisuals::preUpdateTextures().
Here is the caller graph for this function:
|
inlinevirtual |
Enables or disables the caching of finished texture images.
This can be useful if you want to call getTextureAverageColor without duplicating work.
Reimplemented in TextureSource.
Referenced by NodeVisuals::fillNodeVisuals().
Here is the caller graph for this function:
|
staticconstexpr |
Filter needed for mesh-suitable textures, including leading ^.
Referenced by getTextureForMesh(), and NodeVisuals::preUpdateTextures().