SKMesh 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.
Represents a custom vertex mesh that can be drawn with SKCanvas.
public class SKMesh : SkiaSharp.SKObject
- Inheritance
Remarks
Meshes are built with SKMeshBuilder or SKMeshSpecification and only draw on GPU-backed surfaces.
Properties
| Name | Description |
|---|---|
| Bounds |
Gets the bounds of the mesh geometry, used for culling. |
| Handle |
Gets or sets the handle to the underlying native object. (Inherited from SKObject) |
| IgnorePublicDispose |
Gets a value indicating whether the call the public Dispose() should be no-op. (Inherited from SKNativeObject) |
| IndexCount |
Gets the number of indices read from the index buffer, or 0 for a non-indexed mesh. |
| IndexOffset |
Gets the byte offset of the first index in the index buffer, or 0 for a non-indexed mesh. |
| IsDisposed |
Gets a value indicating whether the object has already been disposed. (Inherited from SKNativeObject) |
| IsValid |
Gets a value indicating whether the mesh passed validation and can be drawn. |
| Mode |
Gets how the vertices are assembled into triangles. |
| OwnsHandle |
Gets or sets a value indicating whether this object owns its handle and should destroy the native object when it is disposed. (Inherited from SKNativeObject) |
| VertexCount |
Gets the number of vertices read from the vertex buffer. |
| VertexOffset |
Gets the byte offset of the first vertex in the vertex buffer. |
Methods
| Name | Description |
|---|---|
| CreateBuilder(SKMeshSpecification) |
Creates a builder for a non-indexed SKMesh using the specified specification. |
| CreateIndexedBuilder(SKMeshSpecification) |
Creates a builder for an indexed SKMesh using the specified specification. |
| Dispose() |
Releases all resources used by this SKNativeObject. (Inherited from SKNativeObject) |
| Dispose(Boolean) |
Releases the unmanaged resources used by the SKObject and optionally releases the managed resources. (Inherited from SKObject) |
| DisposeInternal() |
Triggers a dispose, ignoring the value of IgnorePublicDispose. (Inherited from SKNativeObject) |
| DisposeManaged() |
Implemented by derived SKObject types to destroy any managed objects. (Inherited from SKObject) |
| DisposeNative() |
Releases the unmanaged resources used by the mesh. |
| DisposeUnownedManaged() |
Implemented by derived SKObject types to dispose managed objects that are not owned by this instance. (Inherited from SKObject) |