Flutter Engine
The Flutter Engine
|
#include <GrMeshDrawOp.h>
Public Member Functions | |
PatternHelper (GrMeshDrawTarget *, GrPrimitiveType, size_t vertexStride, sk_sp< const GrBuffer > indexBuffer, int verticesPerRepetition, int indicesPerRepetition, int repeatCount, int maxRepetitions) | |
void | recordDraw (GrMeshDrawTarget *, const GrGeometryProcessor *) const |
void | recordDraw (GrMeshDrawTarget *, const GrGeometryProcessor *, const GrSurfaceProxy *const primProcProxies[]) const |
void * | vertices () const |
GrSimpleMesh * | mesh () |
Protected Member Functions | |
PatternHelper ()=default | |
void | init (GrMeshDrawTarget *, GrPrimitiveType, size_t vertexStride, sk_sp< const GrBuffer > indexBuffer, int verticesPerRepetition, int indicesPerRepetition, int repeatCount, int maxRepetitions) |
Helper for rendering repeating meshes using a patterned index buffer. This class creates the space for the vertices and flushes the draws to the GrMeshDrawTarget.
Definition at line 55 of file GrMeshDrawOp.h.
GrMeshDrawOp::PatternHelper::PatternHelper | ( | GrMeshDrawTarget * | target, |
GrPrimitiveType | primitiveType, | ||
size_t | vertexStride, | ||
sk_sp< const GrBuffer > | indexBuffer, | ||
int | verticesPerRepetition, | ||
int | indicesPerRepetition, | ||
int | repeatCount, | ||
int | maxRepetitions | ||
) |
Definition at line 68 of file GrMeshDrawOp.cpp.
|
protecteddefault |
|
protected |
Definition at line 76 of file GrMeshDrawOp.cpp.
|
inline |
Definition at line 67 of file GrMeshDrawOp.h.
void GrMeshDrawOp::PatternHelper::recordDraw | ( | GrMeshDrawTarget * | target, |
const GrGeometryProcessor * | gp | ||
) | const |
Called to issue draws to the GrMeshDrawTarget.
Definition at line 103 of file GrMeshDrawOp.cpp.
void GrMeshDrawOp::PatternHelper::recordDraw | ( | GrMeshDrawTarget * | target, |
const GrGeometryProcessor * | gp, | ||
const GrSurfaceProxy *const | primProcProxies[] | ||
) | const |
Definition at line 108 of file GrMeshDrawOp.cpp.
|
inline |
Definition at line 66 of file GrMeshDrawOp.h.