MCPcopy Create free account
hub / github.com/DentonW/DevIL / ilSaveVtfF

Function ilSaveVtfF

DevIL/src-IL/src/il_vtf.cpp:754–764  ·  view source on GitHub ↗

Writes a .vtf to an already-opened file

Source from the content-addressed store, hash-verified

752
753//! Writes a .vtf to an already-opened file
754ILuint ilSaveVtfF(ILHANDLE File)
755{
756 ILuint Pos;
757 if (!CheckDimensions())
758 return 0;
759 iSetOutputFile(File);
760 Pos = itellw();
761 if (iSaveVtfInternal() == IL_FALSE)
762 return 0; // Error occurred
763 return itellw() - Pos; // Return the number of bytes written.
764}
765
766
767//! Writes a .vtf to a memory "lump"

Callers 2

ilSaveVtfFunction · 0.85
ILAPIENTRY ilSaveFFunction · 0.85

Calls 3

CheckDimensionsFunction · 0.85
iSetOutputFileFunction · 0.85
iSaveVtfInternalFunction · 0.85

Tested by

no test coverage detected