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

Function ilLoadIffF

DevIL/src-IL/src/il_iff.cpp:81–97  ·  view source on GitHub ↗

Reads an already-opened IFF file

Source from the content-addressed store, hash-verified

79
80//! Reads an already-opened IFF file
81ILboolean ilLoadIffF(ILHANDLE File)
82{
83 ILuint FirstPos;
84 ILboolean bRet;
85
86 iSetInputFile(File);
87 FirstPos = itell();
88 bRet = iLoadIffInternal();
89 iseek(FirstPos, IL_SEEK_SET);
90
91 // Lbm files can have the .iff extension as well, so if Iff-loading failed,
92 // try to load it as a Lbm.
93 if (bRet == IL_FALSE)
94 return ilLoadIlbmF(File);
95
96 return bRet;
97}
98
99
100//! Reads from a memory "lump" that contains an IFF

Callers 2

ilLoadIffFunction · 0.85
ILAPIENTRY ilLoadFFunction · 0.85

Calls 3

iSetInputFileFunction · 0.85
iLoadIffInternalFunction · 0.85
ilLoadIlbmFFunction · 0.85

Tested by

no test coverage detected