Assimp |
protected virtual string? CheckTextureFileName( string textureFileName )
CheckTextureFileName checks the texture file name and if file does not exist or is not in supported file format tries to find another file that can be used instead. Returns the file name that can be used to create a texture. If no file can be found, null is returned.
The method first checks if file extension is supported image format for the specified BitmapIO.
If file format is supported, then method checks if file exist on disk. If it exists then we can use this file and the original textureFileName is returned. If file does not exist, then it is checked if the file name was written in old 8.3 file name format, but on disk a file with longer name exist. In this case the existing file name is returned.
If file format is not supported, then it is checked if there is another file on disk with supported file format. In that case the supported file name is returned.