Home | History | Annotate | Download | only in samplecode
      1 #include "SkPoint.h"
      2 
      3 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]);
      4 
      5 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) {
      6     verts[0].set(SkFloatToScalar(107), SkFloatToScalar(189));
      7     texs[0].set(SkFloatToScalar(0), SkFloatToScalar(0));
      8     verts[1].set(SkFloatToScalar(116), SkFloatToScalar(189));
      9     texs[1].set(SkFloatToScalar(9), SkFloatToScalar(0));
     10     verts[2].set(SkFloatToScalar(203), SkFloatToScalar(189));
     11     texs[2].set(SkFloatToScalar(35), SkFloatToScalar(0));
     12     verts[3].set(SkFloatToScalar(212), SkFloatToScalar(189));
     13     texs[3].set(SkFloatToScalar(44), SkFloatToScalar(0));
     14     verts[4].set(SkFloatToScalar(107), SkFloatToScalar(198));
     15     texs[4].set(SkFloatToScalar(0), SkFloatToScalar(9));
     16     verts[5].set(SkFloatToScalar(116), SkFloatToScalar(198));
     17     texs[5].set(SkFloatToScalar(9), SkFloatToScalar(9));
     18     verts[6].set(SkFloatToScalar(203), SkFloatToScalar(198));
     19     texs[6].set(SkFloatToScalar(35), SkFloatToScalar(9));
     20     verts[7].set(SkFloatToScalar(212), SkFloatToScalar(198));
     21     texs[7].set(SkFloatToScalar(44), SkFloatToScalar(9));
     22     verts[8].set(SkFloatToScalar(107), SkFloatToScalar(224));
     23     texs[8].set(SkFloatToScalar(0), SkFloatToScalar(39));
     24     verts[9].set(SkFloatToScalar(116), SkFloatToScalar(224));
     25     texs[9].set(SkFloatToScalar(9), SkFloatToScalar(39));
     26     verts[10].set(SkFloatToScalar(203), SkFloatToScalar(224));
     27     texs[10].set(SkFloatToScalar(35), SkFloatToScalar(39));
     28     verts[11].set(SkFloatToScalar(212), SkFloatToScalar(224));
     29     texs[11].set(SkFloatToScalar(44), SkFloatToScalar(39));
     30     verts[12].set(SkFloatToScalar(107), SkFloatToScalar(233));
     31     texs[12].set(SkFloatToScalar(0), SkFloatToScalar(48));
     32     verts[13].set(SkFloatToScalar(116), SkFloatToScalar(233));
     33     texs[13].set(SkFloatToScalar(9), SkFloatToScalar(48));
     34     verts[14].set(SkFloatToScalar(203), SkFloatToScalar(233));
     35     texs[14].set(SkFloatToScalar(35), SkFloatToScalar(48));
     36     verts[15].set(SkFloatToScalar(212), SkFloatToScalar(233));
     37     texs[15].set(SkFloatToScalar(44), SkFloatToScalar(48));
     38     index[0] = 0; index[1] = 5; index[2] = 1;
     39     index[3] = 0; index[4] = 4; index[5] = 5;
     40 #if 0
     41     index[6] = 1; index[7] = 6; index[8] = 2;
     42 #else
     43     index[6] = 6; index[7] = 2; index[8] = 1;
     44 #endif
     45     index[9] = 1; index[10] = 5; index[11] = 6;
     46     index[12] = 2;
     47     index[13] = 7;
     48     index[14] = 3;
     49     index[15] = 2;
     50     index[16] = 6;
     51     index[17] = 7;
     52     index[18] = 4;
     53     index[19] = 9;
     54     index[20] = 5;
     55     index[21] = 4;
     56     index[22] = 8;
     57     index[23] = 9;
     58     index[24] = 5;
     59     index[25] = 10;
     60     index[26] = 6;
     61     index[27] = 5;
     62     index[28] = 9;
     63     index[29] = 10;
     64     index[30] = 6;
     65     index[31] = 11;
     66     index[32] = 7;
     67     index[33] = 6;
     68     index[34] = 10;
     69     index[35] = 11;
     70     index[36] = 8;
     71     index[37] = 13;
     72     index[38] = 9;
     73     index[39] = 8;
     74     index[40] = 12;
     75     index[41] = 13;
     76     index[42] = 9;
     77     index[43] = 14;
     78     index[44] = 10;
     79     index[45] = 9;
     80     index[46] = 13;
     81     index[47] = 14;
     82     index[48] = 10;
     83     index[49] = 15;
     84     index[50] = 11;
     85     index[51] = 10;
     86     index[52] = 14;
     87     index[53] = 15;
     88 }
     89