DevIL Documentation | Home | Previous | Next |
The ilutD3D8TexFromFileHandle function loads a file handle into a D3D8 texture.
ILboolean ilutD3D8TexFromFile(
IDirect3DDevice8 *Device, ILHANDLE File, IDirect3DTexture8 **Texture);
ilutD3D8TexFromFileInMemory loads the file present in Lump and converts it to a Direct3D 8 texture (IDirect3DTexture8). This function creates the texture, so the pointer does not even have to be allocated beforehand. This function is functionally equivalent to D3DX's D3DXCreateTextureFromFile but with a file handle.
ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.