blob: ae310a5d5448fa848433f63c0c4b6f1168bd3060 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
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 */
reed@android.com8a1c16f2008-12-17 15:59:43 +00008#include "SkPoint.h"
9
10void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]);
11
12void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) {
13 verts[0].set(SkFloatToScalar(107), SkFloatToScalar(189));
14 texs[0].set(SkFloatToScalar(0), SkFloatToScalar(0));
15 verts[1].set(SkFloatToScalar(116), SkFloatToScalar(189));
16 texs[1].set(SkFloatToScalar(9), SkFloatToScalar(0));
17 verts[2].set(SkFloatToScalar(203), SkFloatToScalar(189));
18 texs[2].set(SkFloatToScalar(35), SkFloatToScalar(0));
19 verts[3].set(SkFloatToScalar(212), SkFloatToScalar(189));
20 texs[3].set(SkFloatToScalar(44), SkFloatToScalar(0));
21 verts[4].set(SkFloatToScalar(107), SkFloatToScalar(198));
22 texs[4].set(SkFloatToScalar(0), SkFloatToScalar(9));
23 verts[5].set(SkFloatToScalar(116), SkFloatToScalar(198));
24 texs[5].set(SkFloatToScalar(9), SkFloatToScalar(9));
25 verts[6].set(SkFloatToScalar(203), SkFloatToScalar(198));
26 texs[6].set(SkFloatToScalar(35), SkFloatToScalar(9));
27 verts[7].set(SkFloatToScalar(212), SkFloatToScalar(198));
28 texs[7].set(SkFloatToScalar(44), SkFloatToScalar(9));
29 verts[8].set(SkFloatToScalar(107), SkFloatToScalar(224));
30 texs[8].set(SkFloatToScalar(0), SkFloatToScalar(39));
31 verts[9].set(SkFloatToScalar(116), SkFloatToScalar(224));
32 texs[9].set(SkFloatToScalar(9), SkFloatToScalar(39));
33 verts[10].set(SkFloatToScalar(203), SkFloatToScalar(224));
34 texs[10].set(SkFloatToScalar(35), SkFloatToScalar(39));
35 verts[11].set(SkFloatToScalar(212), SkFloatToScalar(224));
36 texs[11].set(SkFloatToScalar(44), SkFloatToScalar(39));
37 verts[12].set(SkFloatToScalar(107), SkFloatToScalar(233));
38 texs[12].set(SkFloatToScalar(0), SkFloatToScalar(48));
39 verts[13].set(SkFloatToScalar(116), SkFloatToScalar(233));
40 texs[13].set(SkFloatToScalar(9), SkFloatToScalar(48));
41 verts[14].set(SkFloatToScalar(203), SkFloatToScalar(233));
42 texs[14].set(SkFloatToScalar(35), SkFloatToScalar(48));
43 verts[15].set(SkFloatToScalar(212), SkFloatToScalar(233));
44 texs[15].set(SkFloatToScalar(44), SkFloatToScalar(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}