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

Function ilLoadPic

DevIL/src-IL/src/il_pic.cpp:115–130  ·  view source on GitHub ↗

Reads a .pic file

Source from the content-addressed store, hash-verified

113
114//! Reads a .pic file
115ILboolean ilLoadPic(ILconst_string FileName)
116{
117 ILHANDLE PicFile;
118 ILboolean bPic = IL_FALSE;
119
120 PicFile = iopenr(FileName);
121 if (PicFile == NULL) {
122 ilSetError(IL_COULD_NOT_OPEN_FILE);
123 return bPic;
124 }
125
126 bPic = ilLoadPicF(PicFile);
127 icloser(PicFile);
128
129 return bPic;
130}
131
132
133//! Reads an already-opened .pic file

Callers 2

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
ilLoadPicFFunction · 0.85

Tested by

no test coverage detected