|
MochiEngine
|
This interface is to implement different ways to generate the animation data depending on the source of the animation data. More...
#include <IAnimationFactory.h>
Public Member Functions | |
| virtual std::shared_ptr< AnimationsData > | GetAnimationsData (const std::string &animationDataPath)=0 |
| Gets the processed animation data of the file on the input path. | |
| virtual void | DeleteCache ()=0 |
| Deletes the animations cache. This should be safe to call anytime because of the shared pointers. | |
| virtual void | DeleteAnimation (const std::string &texturePath)=0 |
| Deletes a specific animation in the cache. This should be safe to call anytime because of the shared pointers. | |
This interface is to implement different ways to generate the animation data depending on the source of the animation data.
|
pure virtual |
Deletes a specific animation in the cache. This should be safe to call anytime because of the shared pointers.
| texturePath | Path or unique identifier of the file in the file system. |
Implemented in Mochi::Graphics::AsepriteAnimationFactory, and Mochi::Graphics::DummyAnimationFactory.
|
pure virtual |
Deletes the animations cache. This should be safe to call anytime because of the shared pointers.
Implemented in Mochi::Graphics::AsepriteAnimationFactory, and Mochi::Graphics::DummyAnimationFactory.
|
pure virtual |
Gets the processed animation data of the file on the input path.
| animationDataPath | Path or unique identifier of the file containing the animation data in the file system. |
Implemented in Mochi::Graphics::AsepriteAnimationFactory, and Mochi::Graphics::DummyAnimationFactory.