Class CompressedAnimationCurve<T>
- Namespace
- Lime
- Assembly
- Lime.dll
public abstract class CompressedAnimationCurve<T> : IAnimationCurve<T>, ICompressedAnimationCurve, IAnimationCurve
Type Parameters
T
- Inheritance
-
CompressedAnimationCurve<T>
- Implements
-
- Derived
-
- Inherited Members
-
Fields
[YuzuMember]
public byte[] FrameNumberBuffer
Field Value
- byte[]
[YuzuMember]
public CompressedAnimationCurveFrameNumberFormat FrameNumberFormat
Field Value
- CompressedAnimationCurveFrameNumberFormat
ValueBuffer
[YuzuMember]
public byte[] ValueBuffer
Field Value
- byte[]
Properties
Duration
public int Duration { get; }
Property Value
- int
IsEmpty
public bool IsEmpty { get; }
Property Value
- bool
RefCount
public int RefCount { get; }
Property Value
- int
Methods
AddRef()
Compress(List<int>, List<T>)
public void Compress(List<int> frameNumbers, List<T> values)
Parameters
frameNumbers
List<int>
values
List<T>
CompressValues(T[])
protected abstract void CompressValues(T[] values)
Parameters
values
T[]
Create()
public static CompressedAnimationCurve<T> Create()
Returns
- CompressedAnimationCurve<T>
Create(List<int>, List<T>)
public static CompressedAnimationCurve<T> Create(List<int> frameNumbers, List<T> values)
Parameters
frameNumbers
List<int>
values
List<T>
Returns
- CompressedAnimationCurve<T>
CreateEvaluator()
public IAnimationCurveEvaluator<T> CreateEvaluator()
Returns
- IAnimationCurveEvaluator<T>
DecompressValue(int)
protected abstract T DecompressValue(int index)
Parameters
index
int
Returns
- T
Interpolate(T, T, float)
protected abstract T Interpolate(T value1, T value2, float amount)
Parameters
value1
T
value2
T
amount
float
Returns
- T
Release()