XFileManager.FromFile Method |
Language: |
Creates an XFile object used to read a .x file.
Visual Basic Public Function FromFile( _
ByVal filename As String _
) As XFileC# public XFile FromFile(
string filename
);C++ public:
XFile^ FromFile(
String^ filename
);JScript 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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.