-------------------------------------------------------------------------------- Description: Manually adding a color parameter to this effect's list with creating it --------------------------------------------------------------------------------
| 514 | // it |
| 515 | // -------------------------------------------------------------------------------- |
| 516 | bool Tr2Effect::AddParameterColor( const BlueSharedString& name, const Color* value ) |
| 517 | { |
| 518 | // check if we have that name already! |
| 519 | if( HasParameter( name.c_str() ) ) |
| 520 | { |
| 521 | return false; |
| 522 | } |
| 523 | |
| 524 | Tr2ConstantEffectParameter param; |
| 525 | param.name = BlueSharedString( name ); |
| 526 | param.value = *reinterpret_cast<const Vector4*>( value ); |
| 527 | m_constParameters.Append( ¶m ); |
| 528 | return true; |
| 529 | } |
| 530 | |
| 531 | // -------------------------------------------------------------------------------- |
| 532 | void Tr2Effect::ClearAllParameters() |
no test coverage detected