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

Function ilLoadTexture

DevIL/src-IL/src/il_texture.cpp:19–34  ·  view source on GitHub ↗

Reads a TEXTURE file

Source from the content-addressed store, hash-verified

17
18//! Reads a TEXTURE file
19ILboolean ilLoadTexture(ILconst_string FileName)
20{
21 ILHANDLE TextureFile;
22 ILboolean bTexture = IL_FALSE;
23
24 TextureFile = iopenr(FileName);
25 if (TextureFile == NULL) {
26 ilSetError(IL_COULD_NOT_OPEN_FILE);
27 return bTexture;
28 }
29
30 bTexture = ilLoadTextureF(TextureFile);
31 icloser(TextureFile);
32
33 return bTexture;
34}
35
36
37//! Reads an already-opened TEXTURE file

Callers 2

ILAPIENTRY ilLoadFunction · 0.85
ILAPIENTRY ilLoadImageFunction · 0.85

Calls 2

ilSetErrorFunction · 0.85
ilLoadTextureFFunction · 0.85

Tested by

no test coverage detected