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

Function ilLoadSun

DevIL/src-IL/src/il_sun.cpp:155–173  ·  view source on GitHub ↗

Reads a Sun file

Source from the content-addressed store, hash-verified

153
154// Reads a Sun file
155ILboolean ilLoadSun(ILconst_string FileName)
156{
157 ILHANDLE SunFile;
158 ILboolean bSun = IL_FALSE;
159
160 SunFile = iopenr(FileName);
161 if (SunFile == NULL) {
162 ilSetError(IL_COULD_NOT_OPEN_FILE);
163 return bSun;
164 }
165
166 iSetInputFile(SunFile);
167
168 bSun = ilLoadSunF(SunFile);
169
170 icloser(SunFile);
171
172 return bSun;
173}
174
175
176//! Reads an already-opened Sun file

Callers 2

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85

Calls 3

ilSetErrorFunction · 0.85
iSetInputFileFunction · 0.85
ilLoadSunFFunction · 0.85

Tested by

no test coverage detected