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

Method sRegisterFormat

Engine/source/gfx/bitmap/gBitmap.cpp:129–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127//--------------------------------------------------------------------------
128
129void GBitmap::sRegisterFormat( const GBitmap::Registration &reg )
130{
131 U32 insert = sRegistrations.size();
132 for ( U32 i = 0; i < sRegistrations.size(); i++ )
133 {
134 if ( sRegistrations[i].priority <= reg.priority )
135 {
136 insert = i;
137 break;
138 }
139 }
140
141 sRegistrations.insert( insert, reg );
142}
143
144const GBitmap::Registration *GBitmap::sFindRegInfo( const String &extension )
145{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected