Home
last modified time | relevance | path

Searched refs:verts (Results 1 – 25 of 31) sorted by relevance

12

/external/skia/samplecode/
Dvertexdump.cpp3 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]);
5 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) { in setup_vertexbug() argument
6 verts[0].set(SkFloatToScalar(107), SkFloatToScalar(189)); in setup_vertexbug()
8 verts[1].set(SkFloatToScalar(116), SkFloatToScalar(189)); in setup_vertexbug()
10 verts[2].set(SkFloatToScalar(203), SkFloatToScalar(189)); in setup_vertexbug()
12 verts[3].set(SkFloatToScalar(212), SkFloatToScalar(189)); in setup_vertexbug()
14 verts[4].set(SkFloatToScalar(107), SkFloatToScalar(198)); in setup_vertexbug()
16 verts[5].set(SkFloatToScalar(116), SkFloatToScalar(198)); in setup_vertexbug()
18 verts[6].set(SkFloatToScalar(203), SkFloatToScalar(198)); in setup_vertexbug()
20 verts[7].set(SkFloatToScalar(212), SkFloatToScalar(198)); in setup_vertexbug()
[all …]
DSamplePatch.cpp157 SkPoint* verts = vertStorage.get(); in draw() local
160 memcpy(verts, edge0, (nu + 1) * sizeof(SkPoint)); in draw()
162 SkPoint* r = verts; in draw()
172 SkPoint* last = verts + nv * (nu + 1); in draw()
188 r = verts; in draw()
/external/skia/src/utils/
DSkNinePatch.cpp81 static void fillRow(SkPoint verts[], SkPoint texs[], in fillRow() argument
86 verts->set(vx, vy); verts++; in fillRow()
96 verts->set(vx, vy); verts++; in fillRow()
99 verts->set(bounds.fRight, vy); verts++; in fillRow()
200 SkPoint* verts = (SkPoint*)storage.get(); in DrawMesh() local
201 SkPoint* texs = verts + vCount; in DrawMesh()
204 mesh.fVerts = verts; in DrawMesh()
219 fillRow(verts, texs, vy, 0, bounds, xDivs, numXDivs, in DrawMesh()
221 verts += numXDivs + 2; in DrawMesh()
230 fillRow(verts, texs, vy, ty, bounds, xDivs, numXDivs, in DrawMesh()
[all …]
DSkMeshUtils.cpp82 int rows, int cols, const SkPoint verts[], in Draw() argument
92 rows * cols, verts, idx.tex(), colors, NULL, in Draw()
DSkBoundaryPatch.cpp37 bool SkBoundaryPatch::evalPatch(SkPoint verts[], int rows, int cols) { in evalPatch() argument
48 *verts++ = this->eval(x * invR, yy); in evalPatch()
/external/quake/quake/src/QW/client/
Dr_draw.c708 mvertex_t verts[2][100]; //FIXME: do real number in R_RenderPoly() local
743 verts[0][i] = r_pcurrentvertbase[r_pedge->v[0]]; in R_RenderPoly()
748 verts[0][i] = r_pcurrentvertbase[r_pedge->v[1]]; in R_RenderPoly()
756 lastdist = DotProduct (verts[vertpage][lastvert].position, in R_RenderPoly()
765 dist = DotProduct (verts[vertpage][i].position, pclip->normal) - in R_RenderPoly()
771 verts[newpage][newverts].position[0] = in R_RenderPoly()
772 verts[vertpage][i].position[0] + in R_RenderPoly()
773 ((verts[vertpage][lastvert].position[0] - in R_RenderPoly()
774 verts[vertpage][i].position[0]) * frac); in R_RenderPoly()
775 verts[newpage][newverts].position[1] = in R_RenderPoly()
[all …]
Dgl_warp.c36 void BoundPoly (int numverts, float *verts, vec3_t mins, vec3_t maxs) in BoundPoly() argument
43 v = verts; in BoundPoly()
54 void SubdividePolygon (int numverts, float *verts) in SubdividePolygon() argument
70 BoundPoly (numverts, verts, mins, maxs); in SubdividePolygon()
82 v = verts + i; in SubdividePolygon()
89 VectorCopy (verts, v); in SubdividePolygon()
92 v = verts; in SubdividePolygon()
127 for (i=0 ; i<numverts ; i++, verts+= 3) in SubdividePolygon()
129 VectorCopy (verts, poly->verts[i]); in SubdividePolygon()
130 s = DotProduct (verts, warpface->texinfo->vecs[0]); in SubdividePolygon()
[all …]
Dgl_rmain.c299 trivertx_t *verts; in GL_DrawAliasFrame() local
305 verts = (trivertx_t *)((byte *)paliashdr + paliashdr->posedata); in GL_DrawAliasFrame()
306 verts += posenum * paliashdr->poseverts; in GL_DrawAliasFrame()
341 l = shadedots[verts->lightnormalindex] * shadelight; in GL_DrawAliasFrame()
345 *pVertex++ = verts->v[0]; in GL_DrawAliasFrame()
346 *pVertex++ = verts->v[1]; in GL_DrawAliasFrame()
347 *pVertex++ = verts->v[2]; in GL_DrawAliasFrame()
348 verts++; in GL_DrawAliasFrame()
375 l = shadedots[verts->lightnormalindex] * shadelight; in GL_DrawAliasFrame()
377 glVertex3f (verts->v[0], verts->v[1], verts->v[2]); in GL_DrawAliasFrame()
[all …]
Dgl_rsurf.c335 v = p->verts[0]; in R_DrawSequentialPoly()
346 v = p->verts[0]; in R_DrawSequentialPoly()
460 v = p->verts[0]; in R_DrawSequentialPoly()
475 v = p->verts[0]; in R_DrawSequentialPoly()
486 v = p->verts[0]; in R_DrawSequentialPoly()
562 v = p->verts[0]; in R_DrawSequentialPoly()
611 v = p->verts[0]; in DrawGLWaterPoly()
638 v = p->verts[0]; in DrawGLWaterPolyLightmap()
667 v = p->verts[0]; in DrawGLPoly()
755 v = p->verts[0]; in R_BlendLightmaps()
[all …]
Dgl_mesh.c289 trivertx_t *verts; in GL_MakeAliasModelDisplayLists() local
353 verts = Hunk_Alloc (paliashdr->numposes * paliashdr->poseverts in GL_MakeAliasModelDisplayLists()
355 paliashdr->posedata = (byte *)verts - (byte *)paliashdr; in GL_MakeAliasModelDisplayLists()
358 *verts++ = poseverts[i][vertexorder[j]]; in GL_MakeAliasModelDisplayLists()
Dgl_model.h125 float verts[4][VERTEXSIZE]; // variable sized (xyz s1t1 s2t2) member
/external/quake/quake/src/WinQuake/
Dr_draw.cpp708 mvertex_t verts[2][100]; //FIXME: do real number in R_RenderPoly() local
743 verts[0][i] = r_pcurrentvertbase[r_pedge->v[0]]; in R_RenderPoly()
748 verts[0][i] = r_pcurrentvertbase[r_pedge->v[1]]; in R_RenderPoly()
756 lastdist = DotProduct (verts[vertpage][lastvert].position, in R_RenderPoly()
765 dist = DotProduct (verts[vertpage][i].position, pclip->normal) - in R_RenderPoly()
771 verts[newpage][newverts].position[0] = in R_RenderPoly()
772 verts[vertpage][i].position[0] + in R_RenderPoly()
773 ((verts[vertpage][lastvert].position[0] - in R_RenderPoly()
774 verts[vertpage][i].position[0]) * frac); in R_RenderPoly()
775 verts[newpage][newverts].position[1] = in R_RenderPoly()
[all …]
Dgl_warp.cpp36 void BoundPoly (int numverts, float *verts, vec3_t mins, vec3_t maxs) in BoundPoly() argument
43 v = verts; in BoundPoly()
54 void SubdividePolygon (int numverts, float *verts) in SubdividePolygon() argument
70 BoundPoly (numverts, verts, mins, maxs); in SubdividePolygon()
82 v = verts + i; in SubdividePolygon()
89 VectorCopy (verts, v); in SubdividePolygon()
92 v = verts; in SubdividePolygon()
127 for (i=0 ; i<numverts ; i++, verts+= 3) in SubdividePolygon()
129 VectorCopy (verts, poly->verts[i]); in SubdividePolygon()
130 s = DotProduct (verts, warpface->texinfo->vecs[0]); in SubdividePolygon()
[all …]
Dgl_rsurf.cpp332 v = p->verts[0];
343 v = p->verts[0];
459 glTexCoordPointer(2, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][3]); in R_DrawSequentialPoly()
462 glTexCoordPointer(2, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][5]); in R_DrawSequentialPoly()
463 glVertexPointer(3, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][0]); in R_DrawSequentialPoly()
470 v = p->verts[0]; in R_DrawSequentialPoly()
486 glVertexPointer(3, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][0]); in R_DrawSequentialPoly()
487 glTexCoordPointer(2, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][3]); in R_DrawSequentialPoly()
491 v = p->verts[0]; in R_DrawSequentialPoly()
503 glTexCoordPointer(2, GL_FLOAT, VERTEXSIZE*sizeof(float), &p->verts[0][5]); in R_DrawSequentialPoly()
[all …]
Dgl_rmain.cpp329 trivertx_t *v, *verts; in GL_DrawAliasFrame() local
342 verts = (trivertx_t *)((byte *)paliashdr + paliashdr->posedata); in GL_DrawAliasFrame()
343 verts += posenum * paliashdr->poseverts; in GL_DrawAliasFrame()
386 l = shadedots[verts->lightnormalindex] * shadelight; in GL_DrawAliasFrame()
391 *pPos++ = verts->v[0]; in GL_DrawAliasFrame()
392 *pPos++ = verts->v[1]; in GL_DrawAliasFrame()
393 *pPos++ = verts->v[2]; in GL_DrawAliasFrame()
394 verts++; in GL_DrawAliasFrame()
416 l = shadedots[verts->lightnormalindex] * shadelight; in GL_DrawAliasFrame()
418 glVertex3f (verts->v[0], verts->v[1], verts->v[2]); in GL_DrawAliasFrame()
[all …]
Dgl_mesh.cpp302 trivertx_t *verts; in GL_MakeAliasModelDisplayLists() local
360 verts = (trivertx_t*) Hunk_Alloc (paliashdr->numposes * paliashdr->poseverts in GL_MakeAliasModelDisplayLists()
362 paliashdr->posedata = (byte *)verts - (byte *)paliashdr; in GL_MakeAliasModelDisplayLists()
365 *verts++ = poseverts[i][vertexorder[j]]; in GL_MakeAliasModelDisplayLists()
Dgl_model.h121 float verts[4][VERTEXSIZE]; // variable sized (xyz s1t1 s2t2) member
/external/skia/gpu/src/
DGrContext.cpp270 GrPoint* verts = (GrPoint*) arg.vertices(); in createAndLockTexture() local
271 verts[0].setIRectFan(0, 0, in createAndLockTexture()
275 verts[1].setIRectFan(0, 0, 1, 1, 2*sizeof(GrPoint)); in createAndLockTexture()
664 static void setStrokeRectStrip(GrPoint verts[10], GrRect rect, in setStrokeRectStrip()
669 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in setStrokeRectStrip()
670 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in setStrokeRectStrip()
671 verts[2].set(rect.fRight - rad, rect.fTop + rad); in setStrokeRectStrip()
672 verts[3].set(rect.fRight + rad, rect.fTop - rad); in setStrokeRectStrip()
673 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in setStrokeRectStrip()
674 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in setStrokeRectStrip()
[all …]
/external/skia/include/utils/
DSkBoundaryPatch.h29 bool evalPatch(SkPoint verts[], int rows, int cols);
DSkMeshUtils.h39 const SkPoint verts[], const SkColor colors[],
/external/skia/src/core/
DSkDevice.cpp215 const SkPoint verts[], const SkPoint textures[], in drawVertices() argument
219 draw.drawVertices(vmode, vertexCount, verts, textures, colors, xmode, in drawVertices()
/external/skia/include/gpu/
DSkGpuDevice.h107 const SkPoint verts[], const SkPoint texs[],
/external/skia/include/core/
DSkDevice.h227 const SkPoint verts[], const SkPoint texs[],
/external/skia/include/pdf/
DSkPDFDevice.h112 int vertexCount, const SkPoint verts[],
/external/skia/src/pipe/
DSkGPipeRead.cpp269 const SkPoint* verts = skip<SkPoint>(reader, vertexCount); in drawVertices_rp() local
291 canvas->drawVertices(mode, vertexCount, verts, texs, colors, xfer, in drawVertices_rp()

12