Edit

SKMeshBuilder Class

Definition

Builds an SKMesh from a specification, buffers, uniforms and child effects.

public class SKMeshBuilder : IDisposable
Inheritance
SKMeshBuilder
Derived
Implements

Constructors

Name Description
SKMeshBuilder(SKMeshSpecification)

Initializes a new instance of the SKMeshBuilder class.

Properties

Name Description
Bounds

Gets or sets the bounds of the mesh, used for culling.

Children

Gets the child effects supplied to the mesh programs.

Mode

Gets or sets how the vertices are assembled into triangles.

Specification

Gets the specification the mesh is built against.

Uniforms

Gets the uniform values supplied to the mesh programs.

VertexBuffer

Gets the vertex buffer configured on the builder.

VertexCount

Gets the number of vertices configured on the builder.

VertexOffset

Gets the byte offset of the first vertex in VertexBuffer.

VertexStride

Gets the size of a single vertex, in bytes.

Methods

Name Description
Build()

Builds a non-indexed mesh using the configured vertex buffer, uniforms, children, mode, and bounds.

Build(String)

Builds a non-indexed mesh using the configured vertex buffer, uniforms, children, mode, and bounds, reporting any validation errors.

Dispose()

Releases all resources owned by the builder.

SetVertexBuffer(SKMeshVertexBuffer, Int32, Int32)

Configures the vertex buffer, vertex count, and byte offset.

SetVertexBuffer(SKMeshVertexBuffer, Int32)

Configures the vertex buffer and vertex count starting at byte offset 0.

SetVertexBuffer(SKMeshVertexBuffer)

Configures the vertex buffer using all vertices in the buffer starting at byte offset 0.

Applies to