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

Function ilLoadTextureF

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

Reads an already-opened TEXTURE file

Source from the content-addressed store, hash-verified

36
37//! Reads an already-opened TEXTURE file
38ILboolean ilLoadTextureF(ILHANDLE File)
39{
40 ILuint FirstPos;
41 ILboolean bRet;
42
43 iSetInputFile(File);
44 FirstPos = itell();
45 // From http://forums.totalwar.org/vb/showthread.php?t=70886, all that needs to be done
46 // is to strip out the first 48 bytes, and then it is DDS data.
47 iseek(48, IL_SEEK_CUR);
48 bRet = ilLoadDdsF(File);
49 iseek(FirstPos, IL_SEEK_SET);
50
51 return bRet;
52}
53
54
55//! Reads from a memory "lump" that contains a TEXTURE

Callers 2

ilLoadTextureFunction · 0.85
ILAPIENTRY ilLoadFFunction · 0.85

Calls 2

iSetInputFileFunction · 0.85
ilLoadDdsFFunction · 0.85

Tested by

no test coverage detected