IDirect3DRMTexture::InitFromFile

Initializes a texture by using the information in a given file.

HRESULT InitFromFile(
const char *filename
);

Parameters

filename

Address of a string specifying the file from which initialization information is drawn.

Return Values

Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

Remarks

You must have created the texture to be initialized using the IDirect3DRM::CreateObject method.

See Also

IDirect3DRMTexture::InitFromResource, IDirect3DRMTexture::InitFromSurface