MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / WritePrecacheCommands

Method WritePrecacheCommands

neo/renderer/ModelManager.cpp:187–203  ·  view source on GitHub ↗

================= idRenderModelManagerLocal::WritePrecacheCommands ================= */

Source from the content-addressed store, hash-verified

185=================
186*/
187void idRenderModelManagerLocal::WritePrecacheCommands( idFile *f ) {
188 for ( int i = 0 ; i < models.Num() ; i++ ) {
189 idRenderModel *model = models[i];
190
191 if ( !model ) {
192 continue;
193 }
194 if ( !model->IsReloadable() ) {
195 continue;
196 }
197
198 char str[1024];
199 sprintf( str, "touchModel %s\n", model->Name() );
200 common->Printf( "%s", str );
201 f->Printf( "%s", str );
202 }
203}
204
205/*
206=================

Callers

nothing calls this directly

Calls 5

sprintfFunction · 0.85
IsReloadableMethod · 0.80
NumMethod · 0.45
NameMethod · 0.45
PrintfMethod · 0.45

Tested by

no test coverage detected