Home | History | Annotate | Download | only in utils

Lines Matching full:indices

28 static int fillIndices(uint16_t indices[], int xCount, int yCount) {
29 uint16_t* startIndices = indices;
34 *indices++ = n;
35 *indices++ = n + xCount + 2;
36 *indices++ = n + 1;
38 *indices++ = n;
39 *indices++ = n + xCount + 1;
40 *indices++ = n + xCount + 2;
46 return static_cast<int>(indices - startIndices);
190 // allocate 2 times, one for verts, one for texs, plus indices
195 uint16_t* indices = (uint16_t*)(texs + vCount);
202 // we use <= for YDivs, since the prebuild indices work for 3x2 and 3x1 too
206 SkDEBUGCODE(int n =) fillIndices(indices, numXDivs + 1, numYDivs + 1);
208 mesh.fIndices = indices;