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

Function ilLoadRot

DevIL/src-IL/src/il_rot.cpp:31–46  ·  view source on GitHub ↗

Reads a ROT file

Source from the content-addressed store, hash-verified

29
30//! Reads a ROT file
31ILboolean ilLoadRot(ILconst_string FileName)
32{
33 ILHANDLE RotFile;
34 ILboolean bRot = IL_FALSE;
35
36 RotFile = iopenr(FileName);
37 if (RotFile == NULL) {
38 ilSetError(IL_COULD_NOT_OPEN_FILE);
39 return bRot;
40 }
41
42 bRot = ilLoadRotF(RotFile);
43 icloser(RotFile);
44
45 return bRot;
46}
47
48
49//! Reads an already-opened ROT file

Callers 2

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
ilLoadRotFFunction · 0.85

Tested by

no test coverage detected