MochiEngine
Loading...
Searching...
No Matches
Mochi::Graphics::DummyTextureFactory Class Reference
Inheritance diagram for Mochi::Graphics::DummyTextureFactory:
Mochi::Graphics::AbstractTextureFactory

Public Member Functions

virtual std::shared_ptr< ITextureLoadTexture (const std::string &texturePath) override
 Implement this method to actually load the selected texture from memory onto a format that is compatible with the current renderer.
Public Member Functions inherited from Mochi::Graphics::AbstractTextureFactory
std::shared_ptr< ITextureGetTexture (const std::string &texturePath)
 Gets the texture on the specified path on the file system. If the texture is in the cache it returns that one, otherwise it loads the texture from the system.
void DeleteCache ()
 Deletes the texture cache from the factory.
void DeleteTexture (const std::string &texturePath)
 Deletes a single texture from the cache.

Additional Inherited Members

Protected Attributes inherited from Mochi::Graphics::AbstractTextureFactory
std::unordered_map< std::string, std::shared_ptr< ITexture > > mTexturesMap

Member Function Documentation

◆ LoadTexture()

virtual std::shared_ptr< ITexture > Mochi::Graphics::DummyTextureFactory::LoadTexture ( const std::string & texturePath)
inlineoverridevirtual

Implement this method to actually load the selected texture from memory onto a format that is compatible with the current renderer.

Parameters
texturePathThe path of the texture in the virtual file system.
Returns
A shared pointer to the texture.

Implements Mochi::Graphics::AbstractTextureFactory.


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