XFileManager.FromFile Method |
Language: |
Creates an XFile object used to read a .x file.
Visual Basic .NET Public Function FromFile( _
ByVal filename As String _
) As XFileC# public XFile FromFile(
string filename
);Managed C++ public: XFile* FromFile(
String *filename
);JScript .NET public function FromFile(
filename : String
) : XFile;
filename System.String. The filename of the .x file to read.
Microsoft.DirectX.Direct3D.XFile . A newly created XFile object to read the .x file.
After using this method, use one of the XFile methods to retrieve a data object.
Exception GraphicsException.ErrorCode Cause GraphicsException XFileErrorCodes.BadValue A variable is outside its expected range; typically returned when an object is invalid. XFileErrorCodes.ParseError Data stream could not be parsed.
Feedback? Please provide us with your comments on this topic.