XFileGuid.MeshVertexColors Field (Microsoft.DirectX.Direct3D)

Retrieves the globally unique identifier (GUID) for mesh vertex color templates.

Definition

Visual Basic Public Shared MeshVertexColors As GuidLeave Site
C# public static GuidLeave Site MeshVertexColors;
C++ public: static GuidLeave Site MeshVertexColors;
JScript public static var MeshVertexColors : GuidLeave Site

Field Value

System.Guid
A GuidLeave Site value that contains the GUID for mesh vertex color templates.

This field is read-only. 

Remarks

Mesh vertex color templates specify vertex colors for a mesh, rather than applying a material per face or per mesh. The following is an example of a MeshVertexColors template.

[C#]template MeshVertexColors
{
    <1630B821-7842-11cf-8F52-0040333594A3>
    DWORD nVertexColors;
    array IndexColor vertexColors[nVertexColors];
}

Where:

  • nVertexColors - Number of colors. This matches the number of vertices in the mesh.
  • array IndexColor vertexColors[nVertexColors] - Array of indexed colors. For more information, see IndexedColor.