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

Method AddParameterColor

trinity/Shader/Tr2Effect.cpp:516–529  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Manually adding a color parameter to this effect's list with creating it --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

514// it
515// --------------------------------------------------------------------------------
516bool 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( &param );
528 return true;
529}
530
531// --------------------------------------------------------------------------------
532void Tr2Effect::ClearAllParameters()

Callers 4

CreateBoosterEffectMethod · 0.80
SetupBoostersMethod · 0.80
SetupDecalSetsMethod · 0.80
SetupBoosterEffectMethod · 0.80

Calls 1

AppendMethod · 0.80

Tested by

no test coverage detected