MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setRange

Method setRange

Engine/source/sfx/sfxParameter.cpp:260–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258//-----------------------------------------------------------------------------
259
260void SFXParameter::setRange( const Point2F& range )
261{
262 if( range == mRange )
263 return;
264
265 mRange = range;
266
267 F32 value = mClampF( mValue, mRange.x, mRange.y );
268 if( value != mValue )
269 setValue( value );
270
271 mDefaultValue = mClampF( mDefaultValue, mRange.x, mRange.y );
272}
273
274//-----------------------------------------------------------------------------
275

Callers 13

MainWindowMethod · 0.45
initWithDataBlockMethod · 0.45
initWithDataBlockMethod · 0.45
_setRangeMethod · 0.45
_conformLightsMethod · 0.45
registerLightsMethod · 0.45
submitLightMethod · 0.45
submitLightsMethod · 0.45
onWakeMethod · 0.45
_conformLightsMethod · 0.45
onAddMethod · 0.45
submitLightsMethod · 0.45

Calls 2

mClampFFunction · 0.85
setValueFunction · 0.50

Tested by

no test coverage detected