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

Function ilLoadTpl

DevIL/src-IL/src/il_tpl.cpp:146–161  ·  view source on GitHub ↗

Reads a TPL file

Source from the content-addressed store, hash-verified

144
145//! Reads a TPL file
146ILboolean ilLoadTpl(ILconst_string FileName)
147{
148 ILHANDLE TplFile;
149 ILboolean bTpl = IL_FALSE;
150
151 TplFile = iopenr(FileName);
152 if (TplFile == NULL) {
153 ilSetError(IL_COULD_NOT_OPEN_FILE);
154 return bTpl;
155 }
156
157 bTpl = ilLoadTplF(TplFile);
158 icloser(TplFile);
159
160 return bTpl;
161}
162
163
164//! Reads an already-opened TPL file

Callers 2

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
ilLoadTplFFunction · 0.85

Tested by

no test coverage detected