/external/skia/samplecode/ |
vertexdump.cpp | 3 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]); 5 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) { 6 verts[0].set(SkFloatToScalar(107), SkFloatToScalar(189)); 8 verts[1].set(SkFloatToScalar(116), SkFloatToScalar(189)); 10 verts[2].set(SkFloatToScalar(203), SkFloatToScalar(189)); 12 verts[3].set(SkFloatToScalar(212), SkFloatToScalar(189)); 14 verts[4].set(SkFloatToScalar(107), SkFloatToScalar(198)); 16 verts[5].set(SkFloatToScalar(116), SkFloatToScalar(198)); 18 verts[6].set(SkFloatToScalar(203), SkFloatToScalar(198)); 20 verts[7].set(SkFloatToScalar(212), SkFloatToScalar(198)) [all...] |
SamplePatch.cpp | 157 SkPoint* verts = vertStorage.get(); local 160 memcpy(verts, edge0, (nu + 1) * sizeof(SkPoint)); 162 SkPoint* r = verts; 172 SkPoint* last = verts + nv * (nu + 1); 177 // canvas->drawPoints(verts, vertCount, paint); 188 r = verts;
|
/external/skia/src/utils/ |
SkNinePatch.cpp | 81 static void fillRow(SkPoint verts[], SkPoint texs[], 86 verts->set(vx, vy); verts++; 96 verts->set(vx, vy); verts++; 99 verts->set(bounds.fRight, vy); verts++; 195 // number of celss * 2 (tris per cell) * 3 (verts per tri) 197 // allocate 2 times, one for verts, one for texs, plus indices 200 SkPoint* verts = (SkPoint*)storage.get() local [all...] |
SkBoundaryPatch.cpp | 37 bool SkBoundaryPatch::evalPatch(SkPoint verts[], int rows, int cols) { 48 *verts++ = this->eval(x * invR, yy);
|
SkMeshUtils.cpp | 82 int rows, int cols, const SkPoint verts[], 92 rows * cols, verts, idx.tex(), colors, NULL,
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
Canvas_VertexModeTest.java | 58 float[] verts = new float[10]; local 68 verts, 81 verts, 94 verts,
|
/frameworks/base/opengl/tests/gldual/src/com/android/gldual/ |
TriangleRenderer.java | 121 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 3 * 4); 125 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4); 128 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 2); 140 for (int i = 0; i < VERTS; i++) { 146 for(int i = 0; i < VERTS; i++) { 157 gl.glDrawElements(GL10.GL_TRIANGLE_STRIP, VERTS, 161 private final static int VERTS = 3;
|
/external/skia/include/utils/ |
SkBoundaryPatch.h | 29 bool evalPatch(SkPoint verts[], int rows, int cols);
|
SkMeshUtils.h | 39 const SkPoint verts[], const SkColor colors[],
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
StaticTriangleRenderer.java | 218 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 3 * 4); 222 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4); 226 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 2); 238 for (int i = 0; i < VERTS; i++) { 244 for (int i = 0; i < VERTS; i++) { 250 for(int i = 0; i < VERTS; i++) { 264 glDrawElements(GL_TRIANGLE_STRIP, VERTS, 268 private final static int VERTS = 3;
|
TriangleRenderer.java | 186 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 3 * 4); 190 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4); 194 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 2); 206 for (int i = 0; i < VERTS; i++) { 212 for (int i = 0; i < VERTS; i++) { 218 for(int i = 0; i < VERTS; i++) { 232 gl.glDrawElements(GL10.GL_TRIANGLE_STRIP, VERTS, 236 private final static int VERTS = 3;
|
/external/quake/quake/src/QW/client/ |
r_draw.c | 708 mvertex_t verts[2][100]; //FIXME: do real number local 743 verts[0][i] = r_pcurrentvertbase[r_pedge->v[0]]; 748 verts[0][i] = r_pcurrentvertbase[r_pedge->v[1]]; 756 lastdist = DotProduct (verts[vertpage][lastvert].position, 765 dist = DotProduct (verts[vertpage][i].position, pclip->normal) - 771 verts[newpage][newverts].position[0] = 772 verts[vertpage][i].position[0] + 773 ((verts[vertpage][lastvert].position[0] - 774 verts[vertpage][i].position[0]) * frac); 775 verts[newpage][newverts].position[1] [all...] |
gl_warp.c | 36 void BoundPoly (int numverts, float *verts, vec3_t mins, vec3_t maxs) 43 v = verts; 54 void SubdividePolygon (int numverts, float *verts) 70 BoundPoly (numverts, verts, mins, maxs); 82 v = verts + i; 89 VectorCopy (verts, v); 92 v = verts; 127 for (i=0 ; i<numverts ; i++, verts+= 3) 129 VectorCopy (verts, poly->verts[i]) 148 vec3_t verts[64]; local 903 vec3_t verts[MAX_CLIP_VERTS]; local [all...] |
gl_rmain.c | 299 trivertx_t *verts; local 305 verts = (trivertx_t *)((byte *)paliashdr + paliashdr->posedata); 306 verts += posenum * paliashdr->poseverts; 341 l = shadedots[verts->lightnormalindex] * shadelight; 345 *pVertex++ = verts->v[0]; 346 *pVertex++ = verts->v[1]; 347 *pVertex++ = verts->v[2]; 348 verts++; 375 l = shadedots[verts->lightnormalindex] * shadelight; 377 glVertex3f (verts->v[0], verts->v[1], verts->v[2]) 396 trivertx_t *verts; local [all...] |
gl_rsurf.c | 335 v = p->verts[0]; 346 v = p->verts[0]; 460 v = p->verts[0]; 475 v = p->verts[0]; 486 v = p->verts[0]; 562 v = p->verts[0]; 611 v = p->verts[0]; 638 v = p->verts[0]; 667 v = p->verts[0]; 755 v = p->verts[0] [all...] |
gl_mesh.c | 289 trivertx_t *verts;
local 353 verts = Hunk_Alloc (paliashdr->numposes * paliashdr->poseverts
355 paliashdr->posedata = (byte *)verts - (byte *)paliashdr;
358 *verts++ = poseverts[i][vertexorder[j]];
|
/external/quake/quake/src/WinQuake/ |
r_draw.cpp | 708 mvertex_t verts[2][100]; //FIXME: do real number
local 743 verts[0][i] = r_pcurrentvertbase[r_pedge->v[0]];
748 verts[0][i] = r_pcurrentvertbase[r_pedge->v[1]];
756 lastdist = DotProduct (verts[vertpage][lastvert].position,
765 dist = DotProduct (verts[vertpage][i].position, pclip->normal) -
771 verts[newpage][newverts].position[0] =
772 verts[vertpage][i].position[0] +
773 ((verts[vertpage][lastvert].position[0] -
774 verts[vertpage][i].position[0]) * frac);
775 verts[newpage][newverts].position[1] = [all...] |
gl_rsurf.cpp | 332 v = p->verts[0]; 343 v = p->verts[0]; 459 glTexCoordPointer(2, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][3]); 462 glTexCoordPointer(2, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][5]); 463 glVertexPointer(3, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][0]); 470 v = p->verts[0]; 486 glVertexPointer(3, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][0]); 487 glTexCoordPointer(2, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][3]); 491 v = p->verts[0]; 503 glTexCoordPointer(2, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][5]) [all...] |
gl_warp.cpp | 36 void BoundPoly (int numverts, float *verts, vec3_t mins, vec3_t maxs) 43 v = verts; 54 void SubdividePolygon (int numverts, float *verts) 70 BoundPoly (numverts, verts, mins, maxs); 82 v = verts + i; 89 VectorCopy (verts, v); 92 v = verts; 127 for (i=0 ; i<numverts ; i++, verts+= 3) 129 VectorCopy (verts, poly->verts[i]) 148 vec3_t verts[64]; local 952 vec3_t verts[MAX_CLIP_VERTS]; local [all...] |
gl_rmain.cpp | 329 trivertx_t *v, *verts; local 342 verts = (trivertx_t *)((byte *)paliashdr + paliashdr->posedata); 343 verts += posenum * paliashdr->poseverts; 386 l = shadedots[verts->lightnormalindex] * shadelight; 391 *pPos++ = verts->v[0]; 392 *pPos++ = verts->v[1]; 393 *pPos++ = verts->v[2]; 394 verts++; 416 l = shadedots[verts->lightnormalindex] * shadelight; 418 glVertex3f (verts->v[0], verts->v[1], verts->v[2]) 445 trivertx_t *v, *verts; local 596 trivertx_t *verts, *v; local [all...] |
/external/skia/gpu/src/ |
GrContext.cpp | 270 GrPoint* verts = (GrPoint*) arg.vertices(); local 271 verts[0].setIRectFan(0, 0, 275 verts[1].setIRectFan(0, 0, 1, 1, 2*sizeof(GrPoint)); 661 could use an indices array, and then only send 8 verts, but not sure that 664 static void setStrokeRectStrip(GrPoint verts[10], GrRect rect, 669 verts[0].set(rect.fLeft + rad, rect.fTop + rad); 670 verts[1].set(rect.fLeft - rad, rect.fTop - rad); 671 verts[2].set(rect.fRight - rad, rect.fTop + rad); 672 verts[3].set(rect.fRight + rad, rect.fTop - rad); 673 verts[4].set(rect.fRight - rad, rect.fBottom - rad) 772 intptr_t verts = reinterpret_cast<intptr_t>(geo.vertices()); local 825 intptr_t verts = reinterpret_cast<intptr_t>(geo.vertices()); local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
SpriteTextRenderer.java | 292 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 3 * 4); 296 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4); 300 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 2); 304 for (int i = 0; i < VERTS; i++) { 310 for (int i = 0; i < VERTS; i++) { 316 for(int i = 0; i < VERTS; i++) { 330 gl.glDrawElements(GL10.GL_TRIANGLE_STRIP, VERTS, 342 private final static int VERTS = 3;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
AccelerometerTestRenderer.java | 48 private final static int VERTS = 6; 70 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 6 * 4); 74 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4); 78 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 8 * 2); 98 for (int i = 0; i < VERTS; i++) { 104 for (int i = 0; i < VERTS; i++) {
|
/frameworks/base/core/java/android/view/ |
GLES20RecordingCanvas.java | 144 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, 146 super.drawBitmapMesh(bitmap, meshWidth, meshHeight, verts, vertOffset, colors, colorOffset, 300 public void drawVertices(VertexMode mode, int vertexCount, float[] verts, int vertOffset, 303 super.drawVertices(mode, vertexCount, verts, vertOffset, texs, texOffset, colors,
|
/frameworks/base/core/jni/android/graphics/ |
Canvas.cpp | 576 storageSize += ptCount * sizeof(SkPoint); // storage for verts 582 SkPoint* verts; local 585 verts = (SkPoint*)(vertA.ptr() + vertIndex); 588 verts = texs + ptCount; 589 indices = (uint16_t*)(verts + ptCount); 594 verts[i].set(SkFloatToFixed(src[0]), SkFloatToFixed(src[1])); 668 canvas->drawVertices(SkCanvas::kTriangles_VertexMode, ptCount, verts, 688 SkPoint* verts; local 691 verts = (SkPoint*)(vertA.ptr() + vertIndex); 696 int count = ptCount; // for verts [all...] |