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