[core] Extract Function::evaluation to a separate class (#4811)
This allows the Function<Faded<T>> partial specialization to be eliminated, giving all property functions a consistent storage type.
This commit is contained in:
@@ -21,18 +21,6 @@ struct FontStackHash {
|
||||
std::size_t operator()(const FontStack&) const;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct Faded {
|
||||
Faded() = default;
|
||||
Faded(const T& v) : to(v) {}
|
||||
|
||||
T from;
|
||||
float fromScale = 0;
|
||||
T to;
|
||||
float toScale = 0;
|
||||
float t = 0;
|
||||
};
|
||||
|
||||
// -------------------------------------------------------------------------------------------------
|
||||
|
||||
enum class SourceType : uint8_t {
|
||||
|
||||
Reference in New Issue
Block a user