Lines Matching defs:Patch
24 #include "Patch.h"
35 Patch::Patch(): vertices(NULL), verticesCount(0), indexCount(0), hasEmptyQuads(false) {
38 Patch::~Patch() {
45 uint32_t Patch::getSize() const {
49 TextureVertex* Patch::createMesh(const float bitmapWidth, const float bitmapHeight,
50 float width, float height, const Res_png_9patch* patch) {
52 return createMesh(bitmapWidth, bitmapHeight, width, height, mapper, patch);
55 TextureVertex* Patch::createMesh(const float bitmapWidth, const float bitmapHeight,
56 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) {
60 mColors = patch->colors;
62 const int8_t numColors = patch->numColors;
73 uint32_t xCount = patch->numXDivs;
74 uint32_t yCount = patch->numYDivs;
82 const int32_t* xDivs = patch->xDivs;
83 const int32_t* yDivs = patch->yDivs;
170 void Patch::generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex,
210 void Patch::generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2,