Use CFading where possible
This commit is contained in:
1 parent
23364c3bcb
commit
790eda4e15
10 files changed
+119
-202
No files matched your search
@@ -34,6 +34,8 @@ namespace VocaluxeLib
|
||||
/// <param name="duration">Duration of the fading in seconds</param>
|
||||
public CFading(float fromValue, float toValue, float duration)
|
||||
{
|
||||
if (duration < 0)
|
||||
duration = 0;
|
||||
_FromValue = fromValue;
|
||||
_ToValue = toValue;
|
||||
_Duration = duration * 1000f;
|
||||
|
||||
Reference in new issue
Block a user