An immutable set of vertex data that can be used with SkCanvas::drawVertices.
More...
#include <SkVertices.h>
|
static sk_sp< SkVertices > | MakeCopy (VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[], int indexCount, const uint16_t indices[]) |
| Create a vertices by copying the specified arrays. More...
|
|
static sk_sp< SkVertices > | MakeCopy (VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[]) |
|
An immutable set of vertex data that can be used with SkCanvas::drawVertices.
◆ BuilderFlags
Enumerator |
---|
kHasTexCoords_BuilderFlag | |
kHasColors_BuilderFlag | |
◆ VertexMode
Enumerator |
---|
kTriangles_VertexMode | |
kTriangleStrip_VertexMode | |
kTriangleFan_VertexMode | |
kLast_VertexMode | |
◆ approximateSize()
size_t SkVertices::approximateSize |
( |
| ) |
const |
◆ bounds()
const SkRect& SkVertices::bounds |
( |
| ) |
const |
|
inline |
◆ deref()
◆ MakeCopy() [1/2]
◆ MakeCopy() [2/2]
static sk_sp<SkVertices> SkVertices::MakeCopy |
( |
VertexMode |
mode, |
|
|
int |
vertexCount, |
|
|
const SkPoint |
positions[], |
|
|
const SkPoint |
texs[], |
|
|
const SkColor |
colors[], |
|
|
int |
indexCount, |
|
|
const uint16_t |
indices[] |
|
) |
| |
|
static |
Create a vertices by copying the specified arrays.
texs, colors may be nullptr, and indices is ignored if indexCount == 0.
◆ priv() [1/2]
◆ priv() [2/2]
◆ ref()
◆ refCntGreaterThan()
◆ unique()
◆ uniqueID()
uint32_t SkVertices::uniqueID |
( |
| ) |
const |
|
inline |
◆ unref()
◆ SkNVRefCnt< SkVertices >
◆ SkVerticesPriv
friend class SkVerticesPriv |
|
friend |
The documentation for this class was generated from the following file: