Mesh.Save Method
Language: Visual Basic .NET C# Managed C++ JScript .NET (Show All)
Note: This documentation is preliminary and is subject to change.
Saves the mesh to the specified stream object.
Definition
Visual Basic .NET
Public Sub Save ( _ ByVal filename As String , _ ByVal adjacency () As Integer , _ ByVal materials () As ExtendedMaterial , _ ByVal effects () As EffectInstance , _ ByVal format As XFileFormat _ )
C#
public void Save ( string filename , int [] adjacency , ExtendedMaterial [] materials , EffectInstance [] effects , XFileFormat format );
Managed C++
public: void Save ( String *filename , int adjacency __gc[], ExtendedMaterial materials __gc[], EffectInstance effects __gc[], XFileFormat format );
JScript .NET
public function Save ( filename : String , adjacency : int [], materials : ExtendedMaterial [], effects : EffectInstance [], format : XFileFormat );
Parameters
Remarks
The default value for the file format is Binary . The Compressed file format can be combined (using a logical or ) with either the Text or Binary flag to reduce the file size. If a file is specified with both Binary and Text flags, it is saved as a text file.
Exceptions
InvalidCallException
The method call is invalid. For example, a method's parameter might contain an invalid value.
See Also
© 2004 Microsoft Corporation. All rights reserved. Terms of use.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center