Flutter Engine
The Flutter Engine
Functions
vertices.cpp File Reference
#include "export.h"
#include "third_party/skia/include/core/SkVertices.h"

Go to the source code of this file.

Functions

SKWASM_EXPORT SkVerticesvertices_create (SkVertices::VertexMode vertexMode, int vertexCount, SkPoint *positions, SkPoint *textureCoordinates, SkColor *colors, int indexCount, uint16_t *indices)
 
SKWASM_EXPORT void vertices_dispose (SkVertices *vertices)
 

Function Documentation

◆ vertices_create()

SKWASM_EXPORT SkVertices * vertices_create ( SkVertices::VertexMode  vertexMode,
int  vertexCount,
SkPoint positions,
SkPoint textureCoordinates,
SkColor colors,
int  indexCount,
uint16_t *  indices 
)

Definition at line 9 of file vertices.cpp.

15 {
16 return SkVertices::MakeCopy(vertexMode, vertexCount, positions,
17 textureCoordinates, colors, indexCount, indices)
18 .release();
19}
static sk_sp< SkVertices > MakeCopy(VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[], int indexCount, const uint16_t indices[])
Definition: SkVertices.cpp:200
T * release()
Definition: SkRefCnt.h:324
PODArray< SkColor > colors
Definition: SkRecords.h:276

◆ vertices_dispose()

SKWASM_EXPORT void vertices_dispose ( SkVertices vertices)

Definition at line 21 of file vertices.cpp.

21 {
22 vertices->unref();
23}
void unref() const
Definition: SkRefCnt.h:177