--------------------------------------------------------------------------------
| 20 | |
| 21 | // -------------------------------------------------------------------------------- |
| 22 | void Tr2CurveColor::UpdateValue( double time ) |
| 23 | { |
| 24 | double t = time - m_timeOffset; |
| 25 | m_currentValue.r = m_r.Update( t ); |
| 26 | m_currentValue.g = m_g.Update( t ); |
| 27 | m_currentValue.b = m_b.Update( t ); |
| 28 | m_currentValue.a = m_a.Update( t ); |
| 29 | if( m_a.IsEmpty() ) |
| 30 | { |
| 31 | m_currentValue.a = 1; |
| 32 | } |
| 33 | if( m_srgbOutput ) |
| 34 | { |
| 35 | m_currentValue = TriLinearToGamma( m_currentValue ); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // -------------------------------------------------------------------------------- |
| 40 | float Tr2CurveColor::Length() |
no test coverage detected