Share via


MeshBuilder.SetOpaqueData Method

Note

This method is available only when developing for Windows.

Initializes the opaque data for a specific mesh object.

Syntax

'Declaration
Public Sub SetOpaqueData ( _
         opaqueData As OpaqueDataDictionary _
)
public void SetOpaqueData (
         OpaqueDataDictionary opaqueData
)
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.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP