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

Method SetOption

trinity/Shader/Tr2Effect.cpp:548–568  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

546
547// --------------------------------------------------------------------------------
548void Tr2Effect::SetOption( const BlueSharedString& name, const BlueSharedString& value )
549{
550 for( auto it = m_options.begin(); it != m_options.end(); ++it )
551 {
552 if( it->name == name )
553 {
554 if( !( it->value == value ) )
555 {
556 it->value = value;
557 RebuildCachedDataInternal();
558 }
559 return;
560 }
561 }
562 Tr2ShaderOption option;
563 option.name = name;
564 option.value = value;
565
566 m_options.Append( &option );
567 RebuildCachedDataInternal();
568}
569
570void Tr2Effect::ResetOption( const BlueSharedString& name )
571{

Callers 15

RenderVolumetricsMethod · 0.80
RenderFogMethod · 0.80
OnModifiedMethod · 0.80
PerformPassMethod · 0.80
ComputeCORTAOMethod · 0.80
SetShaderOptionMethod · 0.80
DoPrepareResourcesMethod · 0.80
ApplyMethod · 0.80
SetGammaCorrectTextMethod · 0.80

Calls 3

AppendMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected