Skia
2D Graphics Library
|
Functions | |
SK_API sk_sp< SkMesh::IndexBuffer > | MakeIndexBuffer (const void *data, size_t size) |
Makes a CPU-backed index buffer to be used with SkMeshes. More... | |
SK_API sk_sp< SkMesh::IndexBuffer > | CopyIndexBuffer (const sk_sp< SkMesh::IndexBuffer > &) |
Makes a copy of an index buffer. More... | |
SK_API sk_sp< SkMesh::VertexBuffer > | MakeVertexBuffer (const void *, size_t size) |
Makes a CPU-backed vertex buffer to be used with SkMeshes. More... | |
SK_API sk_sp< SkMesh::VertexBuffer > | CopyVertexBuffer (const sk_sp< SkMesh::VertexBuffer > &) |
Makes a copy of a vertex buffer. More... | |
SK_API sk_sp<SkMesh::IndexBuffer> SkMeshes::CopyIndexBuffer | ( | const sk_sp< SkMesh::IndexBuffer > & | ) |
Makes a copy of an index buffer.
The copy will be CPU-backed.
SK_API sk_sp<SkMesh::VertexBuffer> SkMeshes::CopyVertexBuffer | ( | const sk_sp< SkMesh::VertexBuffer > & | ) |
Makes a copy of a vertex buffer.
The copy will be CPU-backed.
SK_API sk_sp<SkMesh::IndexBuffer> SkMeshes::MakeIndexBuffer | ( | const void * | data, |
size_t | size | ||
) |
Makes a CPU-backed index buffer to be used with SkMeshes.
data | The data used to populate the buffer, or nullptr to create a zero- initialized buffer. |
size | Both the size of the data in 'data' and the size of the resulting buffer, in bytes. |
SK_API sk_sp<SkMesh::VertexBuffer> SkMeshes::MakeVertexBuffer | ( | const void * | , |
size_t | size | ||
) |
Makes a CPU-backed vertex buffer to be used with SkMeshes.
data | The data used to populate the buffer, or nullptr to create a zero- initialized buffer. |
size | Both the size of the data in 'data' and the size of the resulting buffer, in bytes. |