Share via


MeshBuilder.CreatePosition Method (Single, Single, Single)

Note

This method is available only when developing for Windows.

Inserts the specified vertex position into the vertex channel.

Syntax

'Declaration
Public Function CreatePosition ( _
         x As Single, _
         y As Single, _
         z As Single _
) As Integer 
public int CreatePosition (
         float x,
         float y,
         float z
)
public:
int CreatePosition(
         float x,
         float y,
         float z
)

Parameters

  • x
    Type: Single
    Value of the x component of the vector.
  • y
    Type: Single
    Value of the y component of the vector.
  • z
    Type: Single
    Value of the z component of the vector.

Return Value

Type: Int32
Index of the inserted vertex.

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