#include <SkMesh.h>
Definition at line 282 of file SkMesh.h.
◆ onUpdate()
virtual bool SkMesh::VertexBuffer::onUpdate |
( |
GrDirectContext * |
, |
|
|
const void * |
data, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
|
privatepure virtual |
◆ size()
virtual size_t SkMesh::VertexBuffer::size |
( |
| ) |
const |
|
pure virtual |
◆ update()
bool SkMesh::VertexBuffer::update |
( |
GrDirectContext * |
dc, |
|
|
const void * |
data, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
Modifies the data in the IndexBuffer by copying size bytes from data into the buffer at offset. Fails if offset + size > this->size() or if either offset or size is not aligned to 4 bytes. The GrDirectContext* must match that used to create the buffer. We take it as a parameter to emphasize that the context must be used to update the data and thus the context must be valid for the current thread.
Definition at line 881 of file SkMesh.cpp.
884 {
886}
static bool check_update(const void *data, size_t offset, size_t size, size_t bufferSize)
virtual size_t size() const =0
virtual bool onUpdate(GrDirectContext *, const void *data, size_t offset, size_t size)=0
std::shared_ptr< const fml::Mapping > data
The documentation for this class was generated from the following files: