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

Method AddParameterVector4

trinity/Shader/Tr2Effect.cpp:484–497  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

482// it
483// --------------------------------------------------------------------------------
484bool Tr2Effect::AddParameterVector4( const BlueSharedString& name, const Vector4* value )
485{
486 // check if we have that name already!
487 if( HasParameter( name.c_str() ) )
488 {
489 return false;
490 }
491
492 Tr2ConstantEffectParameter param;
493 param.name = name;
494 param.value = *value;
495 m_constParameters.Append( &param );
496 return true;
497}
498
499// --------------------------------------------------------------------------------
500// Description:

Callers 10

FillMeshAreaVectorMethod · 0.80
SetupPlaneSetsMethod · 0.80
SetupBannersMethod · 0.80
SetupBannerSetsMethod · 0.80
SetupInstancedMeshesMethod · 0.80
SetupImpactEffectsMethod · 0.80
CreateBoosterEffectMethod · 0.80
SetupBoostersMethod · 0.80
SetupDecalSetsMethod · 0.80
SetupBoosterEffectMethod · 0.80

Calls 1

AppendMethod · 0.80

Tested by

no test coverage detected