SKIndexedMeshBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Builds an indexed SKMesh from a specification, vertex buffer, index buffer, uniforms and child effects.
public class SKIndexedMeshBuilder : SkiaSharp.SKMeshBuilder
- Inheritance
Constructors
| Name | Description |
|---|---|
| SKIndexedMeshBuilder(SKMeshSpecification) |
Initializes a new instance of the SKIndexedMeshBuilder class. |
Properties
| Name | Description |
|---|---|
| Bounds |
Gets or sets the bounds of the mesh, used for culling. (Inherited from SKMeshBuilder) |
| Children |
Gets the child effects supplied to the mesh programs. (Inherited from SKMeshBuilder) |
| IndexBuffer |
Gets the index buffer configured on the builder. |
| IndexCount |
Gets the number of indices configured on the builder. |
| IndexOffset |
Gets the byte offset of the first index in IndexBuffer. |
| Mode |
Gets or sets how the vertices are assembled into triangles. (Inherited from SKMeshBuilder) |
| Specification |
Gets the specification the mesh is built against. (Inherited from SKMeshBuilder) |
| Uniforms |
Gets the uniform values supplied to the mesh programs. (Inherited from SKMeshBuilder) |
| VertexBuffer |
Gets the vertex buffer configured on the builder. (Inherited from SKMeshBuilder) |
| VertexCount |
Gets the number of vertices configured on the builder. (Inherited from SKMeshBuilder) |
| VertexOffset |
Gets the byte offset of the first vertex in VertexBuffer. (Inherited from SKMeshBuilder) |
| VertexStride |
Gets the size of a single vertex, in bytes. (Inherited from SKMeshBuilder) |
Methods
| Name | Description |
|---|---|
| Build() |
Builds an indexed mesh using the configured vertex buffer, index buffer, uniforms, children, mode, and bounds. |
| Build(String) |
Builds an indexed mesh using the configured vertex buffer, index buffer, uniforms, children, mode, and bounds, reporting any validation errors. |
| Dispose() |
Releases all resources owned by the builder. (Inherited from SKMeshBuilder) |
| SetIndexBuffer(SKMeshIndexBuffer, Int32, Int32) |
Configures the index buffer, index count, and byte offset. |
| SetIndexBuffer(SKMeshIndexBuffer, Int32) |
Configures the index buffer and index count starting at byte offset 0. |
| SetIndexBuffer(SKMeshIndexBuffer) |
Configures the index buffer using all 16-bit indices in the buffer starting at byte offset 0. |
| SetVertexBuffer(SKMeshVertexBuffer, Int32, Int32) |
Configures the vertex buffer, vertex count, and byte offset. (Inherited from SKMeshBuilder) |
| SetVertexBuffer(SKMeshVertexBuffer, Int32) |
Configures the vertex buffer and vertex count starting at byte offset 0. (Inherited from SKMeshBuilder) |
| SetVertexBuffer(SKMeshVertexBuffer) |
Configures the vertex buffer using all vertices in the buffer starting at byte offset 0. (Inherited from SKMeshBuilder) |