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

Method removeFeature

Engine/source/shaderGen/featureSet.cpp:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void FeatureSet::removeFeature( const FeatureType &type )
160{
161 for ( U32 i=0; i < mFeatures.size(); i++ )
162 {
163 const FeatureInfo &info = mFeatures[i];
164 if ( info.type == &type )
165 {
166 mFeatures.erase_fast( i );
167 mDescription.clear();
168 return;
169 }
170 }
171}
172
173S32 FeatureSet::getNextFeatureIndex( const FeatureType &type, S32 index ) const
174{

Callers 10

_determineFeaturesMethod · 0.80
initMethod · 0.80
_overrideFeaturesMethod · 0.80
_initMaterialMethod · 0.80
_initMoonMethod · 0.80
_initMaterialMethod · 0.80
initMethod · 0.80
_overrideFeaturesMethod · 0.80
_determineFeaturesMethod · 0.80

Calls 3

erase_fastMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected