DevIL Documentation Home | Previous | Next

ilutD3D8VolTexFromFileInMemory

The ilutD3D8VolTexFromFileInMemory function loads a file in memory into a D3D8 volume texture.

ILboolean ilutD3D8TexFromFile(
  IDirect3DDevice8 *Device,  ILvoid *Lump,  ILuint Size,  IDirect3DVolumeTexture8 **Texture);


Parameters

Device
Pointer to an IDirect3DDevice8 interface, representing the device to be associated with the texture.
Lump
Location of memory file.
Size
Size of Lump in bytes.
Texture
Address of a pointer to an IDirect3DVolumeTexture8 interface, representing the created texture object.


Remarks

ilutD3D8VolTexFromFileInMemory loads the file present in Lump and converts it to a Direct3D 8 volume texture (IDirect3DVolumeTexture8). This function creates the texture, so the pointer does not even have to be allocated beforehand. This function is functionally equivalent to D3DX's D3DXCreateTextureFromFileInMemory but for a volume texture.

Error Codes

ILUT_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilLoadL