MeshBuilder.SetOpaqueData Method

Note

This method is available only when developing for Windows.

Initializes the opaque data for a specific mesh object.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public void SetOpaqueData (
         OpaqueDataDictionary opaqueData
)

Parameters

Remarks

The opaque data is used in conjunction with the current material (set with a call to SetMaterial) to determine the GeometryContent object that will contain the next triangle. MeshBuilder maintains the material value for all future triangles. Therefore, if multiple triangles share the same material, you need only one call to SetMaterial.

SetOpaqueData can be called only on GeometryContent and MeshContent objects.

See Also

Reference

MeshBuilder Class
MeshBuilder Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP