Share via


MeshBuilder.CreatePosition Method (Vector3)

Note

This method is available only when developing for Windows.

Inserts the specified vertex position into the vertex channel at the specified index.

Syntax

'Declaration
Public Function CreatePosition ( _
         pos As Vector3 _
) As Integer 
public int CreatePosition (
         Vector3 pos
)
public:
int CreatePosition(
         Vector3 pos
)

Parameters

  • pos
    Type: Vector3
    Value of the vertex being inserted.

Return Value

Type: Int32
Index of the vertex being inserted.

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