--------------------------------------------------------------------------------
| 546 | |
| 547 | // -------------------------------------------------------------------------------- |
| 548 | void 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 | |
| 570 | void Tr2Effect::ResetOption( const BlueSharedString& name ) |
| 571 | { |
no test coverage detected