Partager via


MeshBuilder.SetOpaqueData Method

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

  • opaqueData
    Opaque data to be applied to the GeometryContent object of the next triangle.

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 XP SP2, Windows Vista