Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: Alex Cristici <alex.cristici@gmail.com>
30 lines
482 B
C++
30 lines
482 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace mbgl {
|
|
|
|
class PaintParameters;
|
|
|
|
namespace gfx {
|
|
|
|
class Drawable;
|
|
|
|
/**
|
|
Base class for drawable tweakers, which manipulate drawables per frame
|
|
*/
|
|
class DrawableTweaker {
|
|
protected:
|
|
DrawableTweaker() = default;
|
|
|
|
public:
|
|
virtual ~DrawableTweaker() = default;
|
|
|
|
virtual void execute(Drawable&, const PaintParameters&) = 0;
|
|
};
|
|
|
|
using DrawableTweakerPtr = std::shared_ptr<DrawableTweaker>;
|
|
|
|
} // namespace gfx
|
|
} // namespace mbgl
|