Mesh.Save(Stream,GraphicsStream,ExtendedMaterial[],EffectInstance[],XFileFormat) Method (Microsoft.DirectX.Direct3D)
Saves the mesh to the specified stream object.
Definition
Visual Basic Public Sub Save( _
ByVal stream As Stream, _
ByVal adjacency As GraphicsStream, _
ByVal materials() As ExtendedMaterial, _
ByVal effects() As EffectInstance, _
ByVal format As XFileFormat _
)C# public void Save(
Stream stream,
GraphicsStream adjacency,
ExtendedMaterial[] materials,
EffectInstance[] effects,
XFileFormat format
);C++ public:
void Save(
Stream^ stream,
GraphicsStream^ adjacency,
array<ExtendedMaterial>^ materials,
array<EffectInstance>^ effects,
XFileFormat format
);JScript public function Save(
stream : Stream,
adjacency : GraphicsStream,
materials : ExtendedMaterial[],
effects : EffectInstance[],
format : XFileFormat
);
Parameters
stream System.IO.Stream
The Stream in which to save the .x file.adjacency Microsoft.DirectX.GraphicsStream
A GraphicsStream of three Int32 values per face that specify the three neighbors for each face in the mesh.materials Microsoft.DirectX.Direct3D.ExtendedMaterial[]
Array of ExtendedMaterial structures that contain material information to save in the DirectX (.x) file.effects Microsoft.DirectX.Direct3D.EffectInstance[]
Array of EffectInstance structures, one per attribute group in the mesh. An effect instance is a particular instance of state information used to initialize an effect.format Microsoft.DirectX.Direct3D.XFileFormat
An XFileFormat that indicates the format to use when saving the .x file. See Remarks.
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
The method call is invalid. For example, a method's parameter might contain an invalid value.
See Also