[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:
John Firebaugh
2016-04-25 09:51:47 -07:00
parent 42043599ff
commit c4089b60bc
12 changed files with 121 additions and 147 deletions

View File

@@ -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 {