Skia
2D Graphics Library
SkVertices::Builder Class Reference

#include <SkVertices.h>

Public Member Functions

 Builder (VertexMode mode, int vertexCount, int indexCount, uint32_t flags)
 
 Builder (VertexMode mode, int vertexCount, int indexCount, const Attribute *attrs, int attrCount)
 
bool isValid () const
 
SkPointpositions ()
 
uint16_t * indices ()
 
void * customData ()
 
SkPointtexCoords ()
 
SkColorcolors ()
 
sk_sp< SkVerticesdetach ()
 

Friends

class SkVertices
 
class SkVerticesPriv
 

Constructor & Destructor Documentation

◆ Builder() [1/2]

SkVertices::Builder::Builder ( VertexMode  mode,
int  vertexCount,
int  indexCount,
uint32_t  flags 
)

◆ Builder() [2/2]

SkVertices::Builder::Builder ( VertexMode  mode,
int  vertexCount,
int  indexCount,
const Attribute attrs,
int  attrCount 
)

Member Function Documentation

◆ colors()

SkColor* SkVertices::Builder::colors ( )

◆ customData()

void* SkVertices::Builder::customData ( )

◆ detach()

sk_sp<SkVertices> SkVertices::Builder::detach ( )

◆ indices()

uint16_t* SkVertices::Builder::indices ( )

◆ isValid()

bool SkVertices::Builder::isValid ( ) const
inline

◆ positions()

SkPoint* SkVertices::Builder::positions ( )

◆ texCoords()

SkPoint* SkVertices::Builder::texCoords ( )

Friends And Related Function Documentation

◆ SkVertices

friend class SkVertices
friend

◆ SkVerticesPriv

friend class SkVerticesPriv
friend

The documentation for this class was generated from the following file: