Home | History | Annotate | Download | only in samplecode
      1 
      2 /*
      3  * Copyright 2011 Google Inc.
      4  *
      5  * Use of this source code is governed by a BSD-style license that can be
      6  * found in the LICENSE file.
      7  */
      8 #include "SkPoint.h"
      9 
     10 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]);
     11 
     12 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) {
     13     verts[0].set(107, 189);
     14     texs[0].set(0, 0);
     15     verts[1].set(116, 189);
     16     texs[1].set(9, 0);
     17     verts[2].set(203, 189);
     18     texs[2].set(35, 0);
     19     verts[3].set(212, 189);
     20     texs[3].set(44, 0);
     21     verts[4].set(107, 198);
     22     texs[4].set(0, 9);
     23     verts[5].set(116, 198);
     24     texs[5].set(9, 9);
     25     verts[6].set(203, 198);
     26     texs[6].set(35, 9);
     27     verts[7].set(212, 198);
     28     texs[7].set(44, 9);
     29     verts[8].set(107, 224);
     30     texs[8].set(0, 39);
     31     verts[9].set(116, 224);
     32     texs[9].set(9, 39);
     33     verts[10].set(203, 224);
     34     texs[10].set(35, 39);
     35     verts[11].set(212, 224);
     36     texs[11].set(44, 39);
     37     verts[12].set(107, 233);
     38     texs[12].set(0, 48);
     39     verts[13].set(116, 233);
     40     texs[13].set(9, 48);
     41     verts[14].set(203, 233);
     42     texs[14].set(35, 48);
     43     verts[15].set(212, 233);
     44     texs[15].set(44, 48);
     45     index[0] = 0; index[1] = 5; index[2] = 1;
     46     index[3] = 0; index[4] = 4; index[5] = 5;
     47 #if 0
     48     index[6] = 1; index[7] = 6; index[8] = 2;
     49 #else
     50     index[6] = 6; index[7] = 2; index[8] = 1;
     51 #endif
     52     index[9] = 1; index[10] = 5; index[11] = 6;
     53     index[12] = 2;
     54     index[13] = 7;
     55     index[14] = 3;
     56     index[15] = 2;
     57     index[16] = 6;
     58     index[17] = 7;
     59     index[18] = 4;
     60     index[19] = 9;
     61     index[20] = 5;
     62     index[21] = 4;
     63     index[22] = 8;
     64     index[23] = 9;
     65     index[24] = 5;
     66     index[25] = 10;
     67     index[26] = 6;
     68     index[27] = 5;
     69     index[28] = 9;
     70     index[29] = 10;
     71     index[30] = 6;
     72     index[31] = 11;
     73     index[32] = 7;
     74     index[33] = 6;
     75     index[34] = 10;
     76     index[35] = 11;
     77     index[36] = 8;
     78     index[37] = 13;
     79     index[38] = 9;
     80     index[39] = 8;
     81     index[40] = 12;
     82     index[41] = 13;
     83     index[42] = 9;
     84     index[43] = 14;
     85     index[44] = 10;
     86     index[45] = 9;
     87     index[46] = 13;
     88     index[47] = 14;
     89     index[48] = 10;
     90     index[49] = 15;
     91     index[50] = 11;
     92     index[51] = 10;
     93     index[52] = 14;
     94     index[53] = 15;
     95 }
     96