Reads an already-opened TEXTURE file
| 36 | |
| 37 | //! Reads an already-opened TEXTURE file |
| 38 | ILboolean 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 |
no test coverage detected