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

Function ilLoadBmp

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

Reads a .bmp file

Source from the content-addressed store, hash-verified

171
172//! Reads a .bmp file
173ILboolean ilLoadBmp(ILconst_string FileName) {
174 ILHANDLE BitmapFile;
175 ILboolean bBitmap = IL_FALSE;
176
177 BitmapFile = iopenr(FileName);
178 if (BitmapFile == NULL) {
179 ilSetError(IL_COULD_NOT_OPEN_FILE);
180 return bBitmap;
181 }
182
183 bBitmap = ilLoadBmpF(BitmapFile);
184 icloser(BitmapFile);
185
186 return bBitmap;
187}
188
189
190//! Reads an already-opened .bmp file

Callers 2

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
ilLoadBmpFFunction · 0.85

Tested by

no test coverage detected