1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Implemented terrain transition animation

This commit is contained in:
Ivan Savenko
2023-03-01 19:25:51 +02:00
parent 58aa5c0427
commit 165f6a0944
8 changed files with 74 additions and 32 deletions

View File

@@ -62,7 +62,7 @@ public:
explicit MapViewCache(const std::shared_ptr<MapViewModel> & model);
~MapViewCache();
void invalidate(const std::shared_ptr<IMapRendererContext> & context, const int3 & tile);
/// invalidates cache of specified object
void invalidate(const std::shared_ptr<IMapRendererContext> & context, const ObjectInstanceID & object);
/// updates internal terrain cache according to provided time delta
@@ -70,4 +70,8 @@ public:
/// renders updated terrain cache onto provided canvas
void render(const std::shared_ptr<IMapRendererContext> & context, Canvas & target, bool fullRedraw);
/// creates snapshot of current view and stores it into internal canvas
/// used for view transition, e.g. Dimension Door spell or teleporters (Subterra gates / Monolith)
void createTransitionSnapshot(const std::shared_ptr<IMapRendererContext> & context);
};