Flutter Engine
The Flutter Engine
|
#include <SkVertices.h>
Classes | |
class | Builder |
struct | Desc |
struct | Sizes |
Public Types | |
enum | VertexMode { kTriangles_VertexMode , kTriangleStrip_VertexMode , kTriangleFan_VertexMode , kLast_VertexMode = kTriangleFan_VertexMode } |
enum | BuilderFlags { kHasTexCoords_BuilderFlag = 1 << 0 , kHasColors_BuilderFlag = 1 << 1 } |
Public Member Functions | |
uint32_t | uniqueID () const |
const SkRect & | bounds () const |
size_t | approximateSize () const |
SkVerticesPriv | priv () |
const SkVerticesPriv | priv () const |
Public Member Functions inherited from SkNVRefCnt< SkVertices > | |
SkNVRefCnt () | |
~SkNVRefCnt () | |
bool | unique () const |
void | ref () const |
void | unref () const |
void | deref () const |
bool | refCntGreaterThan (int32_t threadIsolatedTestCnt) const |
Static Public Member Functions | |
static sk_sp< SkVertices > | MakeCopy (VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[], int indexCount, const uint16_t indices[]) |
static sk_sp< SkVertices > | MakeCopy (VertexMode mode, int vertexCount, const SkPoint positions[], const SkPoint texs[], const SkColor colors[]) |
Friends | |
class | SkVerticesPriv |
class | SkNVRefCnt< SkVertices > |
An immutable set of vertex data that can be used with SkCanvas::drawVertices.
Definition at line 26 of file SkVertices.h.
Enumerator | |
---|---|
kHasTexCoords_BuilderFlag | |
kHasColors_BuilderFlag |
Definition at line 62 of file SkVertices.h.
Enumerator | |
---|---|
kTriangles_VertexMode | |
kTriangleStrip_VertexMode | |
kTriangleFan_VertexMode | |
kLast_VertexMode |
Definition at line 30 of file SkVertices.h.
size_t SkVertices::approximateSize | ( | ) | const |
Definition at line 221 of file SkVertices.cpp.
|
inline |
Definition at line 98 of file SkVertices.h.
|
inlinestatic |
Definition at line 49 of file SkVertices.h.
|
static |
Create a vertices by copying the specified arrays. texs, colors may be nullptr, and indices is ignored if indexCount == 0.
Definition at line 200 of file SkVertices.cpp.
|
inline |
Definition at line 58 of file SkVerticesPriv.h.
|
inline |
Definition at line 60 of file SkVerticesPriv.h.
|
inline |
Definition at line 97 of file SkVertices.h.
|
friend |
Definition at line 110 of file SkVertices.h.
|
friend |
Definition at line 110 of file SkVertices.h.