Flutter Engine
The Flutter Engine
|
#include <SkVertState.h>
Public Types | |
typedef bool(* | Proc) (VertState *) |
Public Member Functions | |
VertState (int vCount, const uint16_t indices[], int indexCount) | |
Proc | chooseProc (SkVertices::VertexMode mode) |
Public Attributes | |
int | f0 |
int | f1 |
int | f2 |
This is a helper for drawVertices(). It is used to iterate over the triangles that are to be rendered based on an SkCanvas::VertexMode and (optionally) an index array. It does not copy the index array and the client must ensure it remains valid for the lifetime of the VertState object.
Definition at line 22 of file SkVertState.h.
typedef bool(* VertState::Proc) (VertState *) |
Definition at line 39 of file SkVertState.h.
Construct a VertState from a vertex count, index array, and index count. If the vertices are unindexed pass nullptr for indices.
Definition at line 29 of file SkVertState.h.
VertState::Proc VertState::chooseProc | ( | SkVertices::VertexMode | mode | ) |
Choose an appropriate function to traverse the vertices.
mode | Specifies the SkCanvas::VertexMode. |
Definition at line 95 of file SkVertState.cpp.
int VertState::f0 |
Definition at line 23 of file SkVertState.h.
int VertState::f1 |
Definition at line 23 of file SkVertState.h.
int VertState::f2 |
Definition at line 23 of file SkVertState.h.