Share via


VertexPositionColor Constructor

Initializes a new instance of the VertexPositionColor class.

Syntax

'Declaration
Public Sub New ( _
         position As Vector3, _
         color As Color _
)
public VertexPositionColor (
         Vector3 position,
         Color color
)
public:
VertexPositionColor(
         Vector3 position,
         Color color
)

Parameters

  • position
    Type: Vector3
    The position of the vertex.
  • color
    Type: Color
    The color of the vertex.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

See Also

Reference

VertexPositionColor Structure
VertexPositionColor Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows Phone