|
ilutD3D8VolTexFromFile loads the file named by FileName 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 D3DXCreateTextureFromFile but for a volume texture.
| IDirect3DTexture8 * ilutD3D8VolTexFromFile( IDirect3DDevice8 * Device, char * FileName, IDirect3DVolumeTexture8 ** Texture );
|
Parameters | - Device
- Pointer to an IDirect3DDevice8 interface, representing the device to be associated with the texture.
- FileName
- File to create the texture from.
- Texture
- Address of a pointer to an IDirect3DVolumeTexture8 interface, representing the created texture object.
|
Errors | - ILUT_COULD_NOT_OPEN_FILE
- Could not open the file specified. The file may already be open by another app or may not exist.
- ILUT_ILLEGAL_OPERATION
- The operation attempted is not allowable in the current state. The function returns with no ill side effects.
|
See Also
|