MCPcopy Create free account
hub / github.com/carbonengine/trinity / UpdateValue

Method UpdateValue

trinity/Curves/Tr2CurveColor.cpp:22–37  ·  view source on GitHub ↗

--------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

20
21// --------------------------------------------------------------------------------
22void 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// --------------------------------------------------------------------------------
40float Tr2CurveColor::Length()

Callers 1

ApplyMethod · 0.45

Calls 3

TriLinearToGammaFunction · 0.85
UpdateMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected