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

Function ilLoadDds

DevIL/src-IL/src/il_dds.cpp:171–186  ·  view source on GitHub ↗

Reads a .dds file

Source from the content-addressed store, hash-verified

169
170//! Reads a .dds file
171ILboolean ilLoadDds(ILconst_string FileName)
172{
173 ILHANDLE DdsFile;
174 ILboolean bDds = IL_FALSE;
175
176 DdsFile = iopenr(FileName);
177 if (DdsFile == NULL) {
178 ilSetError(IL_COULD_NOT_OPEN_FILE);
179 return bDds;
180 }
181
182 bDds = ilLoadDdsF(DdsFile);
183 icloser(DdsFile);
184
185 return bDds;
186}
187
188
189//! Reads an already-opened .dds file

Callers 2

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
ilLoadDdsFFunction · 0.85

Tested by

no test coverage detected