|
MochiEngine
|
Public Member Functions | |
| virtual std::shared_ptr< ITexture > | LoadTexture (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< ITexture > | GetTexture (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 |
|
inlineoverridevirtual |
Implement this method to actually load the selected texture from memory onto a format that is compatible with the current renderer.
| texturePath | The path of the texture in the virtual file system. |
Implements Mochi::Graphics::AbstractTextureFactory.