skia2/samplecode/vertexdump.cpp

95 lines
2.2 KiB
C++
Raw Normal View History

Automatic update of all copyright notices to reflect new license terms. I have manually examined all of these diffs and restored a few files that seem to require manual adjustment. The following files still need to be modified manually, in a separate CL: android_sample/SampleApp/AndroidManifest.xml android_sample/SampleApp/res/layout/layout.xml android_sample/SampleApp/res/menu/sample.xml android_sample/SampleApp/res/values/strings.xml android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java experimental/CiCarbonSampleMain.c experimental/CocoaDebugger/main.m experimental/FileReaderApp/main.m experimental/SimpleCocoaApp/main.m experimental/iOSSampleApp/Shared/SkAlertPrompt.h experimental/iOSSampleApp/Shared/SkAlertPrompt.m experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig gpu/src/android/GrGLDefaultInterface_android.cpp gyp/common.gypi gyp_skia include/ports/SkHarfBuzzFont.h include/views/SkOSWindow_wxwidgets.h make.bat make.py src/opts/memset.arm.S src/opts/memset16_neon.S src/opts/memset32_neon.S src/opts/opts_check_arm.cpp src/ports/SkDebug_brew.cpp src/ports/SkMemory_brew.cpp src/ports/SkOSFile_brew.cpp src/ports/SkXMLParser_empty.cpp src/utils/ios/SkImageDecoder_iOS.mm src/utils/ios/SkOSFile_iOS.mm src/utils/ios/SkStream_NSData.mm tests/FillPathTest.cpp Review URL: http://codereview.appspot.com/4816058 git-svn-id: http://skia.googlecode.com/svn/trunk@1982 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-28 14:26:00 +00:00
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkPoint.h"
void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]);
void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) {
verts[0].set(107, 189);
texs[0].set(0, 0);
verts[1].set(116, 189);
texs[1].set(9, 0);
verts[2].set(203, 189);
texs[2].set(35, 0);
verts[3].set(212, 189);
texs[3].set(44, 0);
verts[4].set(107, 198);
texs[4].set(0, 9);
verts[5].set(116, 198);
texs[5].set(9, 9);
verts[6].set(203, 198);
texs[6].set(35, 9);
verts[7].set(212, 198);
texs[7].set(44, 9);
verts[8].set(107, 224);
texs[8].set(0, 39);
verts[9].set(116, 224);
texs[9].set(9, 39);
verts[10].set(203, 224);
texs[10].set(35, 39);
verts[11].set(212, 224);
texs[11].set(44, 39);
verts[12].set(107, 233);
texs[12].set(0, 48);
verts[13].set(116, 233);
texs[13].set(9, 48);
verts[14].set(203, 233);
texs[14].set(35, 48);
verts[15].set(212, 233);
texs[15].set(44, 48);
index[0] = 0; index[1] = 5; index[2] = 1;
index[3] = 0; index[4] = 4; index[5] = 5;
#if 0
index[6] = 1; index[7] = 6; index[8] = 2;
#else
index[6] = 6; index[7] = 2; index[8] = 1;
#endif
index[9] = 1; index[10] = 5; index[11] = 6;
index[12] = 2;
index[13] = 7;
index[14] = 3;
index[15] = 2;
index[16] = 6;
index[17] = 7;
index[18] = 4;
index[19] = 9;
index[20] = 5;
index[21] = 4;
index[22] = 8;
index[23] = 9;
index[24] = 5;
index[25] = 10;
index[26] = 6;
index[27] = 5;
index[28] = 9;
index[29] = 10;
index[30] = 6;
index[31] = 11;
index[32] = 7;
index[33] = 6;
index[34] = 10;
index[35] = 11;
index[36] = 8;
index[37] = 13;
index[38] = 9;
index[39] = 8;
index[40] = 12;
index[41] = 13;
index[42] = 9;
index[43] = 14;
index[44] = 10;
index[45] = 9;
index[46] = 13;
index[47] = 14;
index[48] = 10;
index[49] = 15;
index[50] = 11;
index[51] = 10;
index[52] = 14;
index[53] = 15;
}