IEditCharacter::LoadCharacter

Loads the character from the given file.

   

HRESULT LoadCharacter( OLECHAR* path, long filter, ICharacter* pchar, BOOL bCacheTextures );

Parameters

path
[in]
filter
[in] 1 based index of the importer to use. This can be set to 0 to find the importer based on the file extension.
pchar
[in] The contents of the file will be loaded into this character.
bCacheTextures
[in] Whether or not the textures should be cached in the current rendering device.

Return Values

Remarks

A filter is specified to overcome potential ambiguity when more than one importer exists for the same file extension or when multiple file formats share the same file extension. The filter index should match that used by OPENFILENAME::nFilterIndex when using the list of filters obtained by calling IEditCharacter::GetImportFilterList. If the bCacheTextures parameter is non-zero then the caller is responsible for calling IEditCharacter::DestroyCharacter with the character to free the textures cached in the rendering device.

See Also

ICharacter

Copyright © 2004-2010 Fragmosoft