mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 13:11:19 +01:00
22 lines
530 B
C++
22 lines
530 B
C++
#ifndef _RIVE_KEYED_PROPERTY_HPP_
|
|
#define _RIVE_KEYED_PROPERTY_HPP_
|
|
#include "generated/animation/keyed_property_base.hpp"
|
|
#include <vector>
|
|
namespace rive
|
|
{
|
|
class KeyFrame;
|
|
class KeyedProperty : public KeyedPropertyBase
|
|
{
|
|
private:
|
|
std::vector<KeyFrame*> m_KeyFrames;
|
|
public:
|
|
~KeyedProperty();
|
|
void addKeyFrame(KeyFrame* keyframe);
|
|
void onAddedClean(CoreContext* context) override;
|
|
void onAddedDirty(CoreContext* context) override;
|
|
|
|
void apply(Core* object, float time, float mix);
|
|
};
|
|
} // namespace rive
|
|
|
|
#endif |