Upravit

Sdílet prostřednictvím


SKVertices.CreateCopy Method

Definition

Overloads

CreateCopy(SKVertexMode, SKPoint[], SKColor[])

Creates a new SKVertices instance, making a copy of the vertices and related data.

CreateCopy(SKVertexMode, SKPoint[], SKPoint[], SKColor[])

Creates a new SKVertices instance, making a copy of the vertices and related data.

CreateCopy(SKVertexMode, SKPoint[], SKPoint[], SKColor[], UInt16[])

Creates a new SKVertices instance, making a copy of the vertices and related data.

CreateCopy(SKVertexMode, SKPoint[], SKColor[])

Creates a new SKVertices instance, making a copy of the vertices and related data.

public static SkiaSharp.SKVertices CreateCopy (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] positions, SkiaSharp.SKColor[] colors);

Parameters

vmode
SKVertexMode

How to interpret the array of vertices.

positions
SKPoint[]

The array of vertices for the mesh.

colors
SKColor[]

The color for each vertex, to be interpolated across the triangle. May be null.

Returns

Returns the new SKVertices instance.

Applies to

CreateCopy(SKVertexMode, SKPoint[], SKPoint[], SKColor[])

Creates a new SKVertices instance, making a copy of the vertices and related data.

public static SkiaSharp.SKVertices CreateCopy (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] positions, SkiaSharp.SKPoint[] texs, SkiaSharp.SKColor[] colors);

Parameters

vmode
SKVertexMode

How to interpret the array of vertices.

positions
SKPoint[]

The array of vertices for the mesh.

texs
SKPoint[]

The coordinates in texture space (not UV space) for each vertex. May be null.

colors
SKColor[]

The color for each vertex, to be interpolated across the triangle. May be null.

Returns

Returns the new SKVertices instance.

Applies to

CreateCopy(SKVertexMode, SKPoint[], SKPoint[], SKColor[], UInt16[])

Creates a new SKVertices instance, making a copy of the vertices and related data.

public static SkiaSharp.SKVertices CreateCopy (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] positions, SkiaSharp.SKPoint[] texs, SkiaSharp.SKColor[] colors, ushort[] indices);

Parameters

vmode
SKVertexMode

How to interpret the array of vertices.

positions
SKPoint[]

The array of vertices for the mesh.

texs
SKPoint[]

The coordinates in texture space (not UV space) for each vertex. May be null.

colors
SKColor[]

The color for each vertex, to be interpolated across the triangle. May be null.

indices
UInt16[]

The array of indices to reference into the vertex (texture coordinates, colors) array.

Returns

Returns the new SKVertices instance.

Applies to