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

Method findIcon

Engine/source/gui/worldEditor/editorIconRegistry.cpp:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90GFXTexHandle EditorIconRegistry::findIcon( AbstractClassRep *classRep )
91{
92 while ( classRep )
93 {
94 StringNoCase key( classRep->getClassName() );
95 IconMap::Iterator icon = mIcons.find( key );
96
97 if ( icon != mIcons.end() && icon->value.isValid() )
98 return icon->value;
99
100 classRep = classRep->getParentClass();
101 }
102
103 return mDefaultIcon;
104}
105
106GFXTexHandle EditorIconRegistry::findIcon( const SimObject *object )
107{

Callers 4

onRenderCellMethod · 0.80
renderScreenObjMethod · 0.80

Calls 10

getParentClassMethod · 0.80
getClassRepMethod · 0.80
getNextClassMethod · 0.80
errorfFunction · 0.50
getClassNameMethod · 0.45
findMethod · 0.45
endMethod · 0.45
isValidMethod · 0.45
equalMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected