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

Method IndexFromPath

Engine/source/gui/editor/guiImageList.cpp:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126U32 GuiImageList::IndexFromPath ( const char* Path )
127{
128 if ( !mTextures.size() ) return -1;
129 Vector<PTextureEntry>::iterator i = mTextures.begin();
130 for ( ; i != mTextures.end(); i++ )
131 {
132 if ( dStricmp( Path, (*i)->TexturePath ) == 0 )
133 return (*i)->id;
134 }
135
136 return -1;
137}
138
139void GuiImageList::initPersistFields()
140{

Callers 1

guiImageList.cppFile · 0.80

Calls 4

dStricmpFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected