• Home
  • Raw
  • Download

Lines Matching refs:vertices

275 	TriangleVertex vertices[3];  member
440 void clipTriangleToPlane (std::vector<TriangleVertex>& clippedEdges, const TriangleVertex* vertices in clipTriangleToPlane() argument
442 const bool v0Clipped = !plane.pointInClipVolume(vertices[0].position); in clipTriangleToPlane()
443 const bool v1Clipped = !plane.pointInClipVolume(vertices[1].position); in clipTriangleToPlane()
444 const bool v2Clipped = !plane.pointInClipVolume(vertices[2].position); in clipTriangleToPlane()
450 clippedEdges.insert(clippedEdges.begin(), vertices, vertices + 3); in clipTriangleToPlane()
455 …if (v0Clipped) clipTriangleOneVertex(clippedEdges, plane, vertices[0], vertices[1], vertices[2]); in clipTriangleToPlane()
456 … if (v1Clipped) clipTriangleOneVertex(clippedEdges, plane, vertices[1], vertices[2], vertices[0]); in clipTriangleToPlane()
457 else clipTriangleOneVertex(clippedEdges, plane, vertices[2], vertices[0], vertices[1]); in clipTriangleToPlane()
462 …if (!v0Clipped) clipTriangleTwoVertices(clippedEdges, plane, vertices[0], vertices[1], vertices[… in clipTriangleToPlane()
463 …f (!v1Clipped) clipTriangleTwoVertices(clippedEdges, plane, vertices[1], vertices[2], vertices[0]); in clipTriangleToPlane()
464 else clipTriangleTwoVertices(clippedEdges, plane, vertices[2], vertices[0], vertices[1]); in clipTriangleToPlane()
592 initialTri.vertices[0].position = vec4ToClipVec4(list[inputTriangleNdx].v0->position); in clipPrimitives()
593 initialTri.vertices[0].weight[0] = (ClipFloat)1.0; in clipPrimitives()
594 initialTri.vertices[0].weight[1] = (ClipFloat)0.0; in clipPrimitives()
595 initialTri.vertices[0].weight[2] = (ClipFloat)0.0; in clipPrimitives()
597 initialTri.vertices[1].position = vec4ToClipVec4(list[inputTriangleNdx].v1->position); in clipPrimitives()
598 initialTri.vertices[1].weight[0] = (ClipFloat)0.0; in clipPrimitives()
599 initialTri.vertices[1].weight[1] = (ClipFloat)1.0; in clipPrimitives()
600 initialTri.vertices[1].weight[2] = (ClipFloat)0.0; in clipPrimitives()
602 initialTri.vertices[2].position = vec4ToClipVec4(list[inputTriangleNdx].v2->position); in clipPrimitives()
603 initialTri.vertices[2].weight[0] = (ClipFloat)0.0; in clipPrimitives()
604 initialTri.vertices[2].weight[1] = (ClipFloat)0.0; in clipPrimitives()
605 initialTri.vertices[2].weight[2] = (ClipFloat)1.0; in clipPrimitives()
620 clipTriangleToPlane(convexPrimitive, subTriangles[subTriangleNdx].vertices, *planes[planeNdx]); in clipPrimitives()
645 subsubTriangle.vertices[0] = v0; in clipPrimitives()
646 subsubTriangle.vertices[1] = v1; in clipPrimitives()
647 subsubTriangle.vertices[2] = v2; in clipPrimitives()
666 p0->position = clipVec4ToVec4(subTriangles[subTriangleNdx].vertices[0].position); in clipPrimitives()
667 p1->position = clipVec4ToVec4(subTriangles[subTriangleNdx].vertices[1].position); in clipPrimitives()
668 p2->position = clipVec4ToVec4(subTriangles[subTriangleNdx].vertices[2].position); in clipPrimitives()
678 p0->outputs[outputNdx] = (float)subTriangles[subTriangleNdx].vertices[0].weight[0] * out0 in clipPrimitives()
679 + (float)subTriangles[subTriangleNdx].vertices[0].weight[1] * out1 in clipPrimitives()
680 + (float)subTriangles[subTriangleNdx].vertices[0].weight[2] * out2; in clipPrimitives()
682 p1->outputs[outputNdx] = (float)subTriangles[subTriangleNdx].vertices[1].weight[0] * out0 in clipPrimitives()
683 + (float)subTriangles[subTriangleNdx].vertices[1].weight[1] * out1 in clipPrimitives()
684 + (float)subTriangles[subTriangleNdx].vertices[1].weight[2] * out2; in clipPrimitives()
686 p2->outputs[outputNdx] = (float)subTriangles[subTriangleNdx].vertices[2].weight[0] * out0 in clipPrimitives()
687 + (float)subTriangles[subTriangleNdx].vertices[2].weight[1] * out1 in clipPrimitives()
688 + (float)subTriangles[subTriangleNdx].vertices[2].weight[2] * out2; in clipPrimitives()
864 …nct (VertexPacket*& packet, std::set<VertexPacket*, std::less<void*> >& vertices, VertexPacketAllo… in makeSharedVerticeDistinct() argument
867 if (vertices.find(packet) == vertices.end()) in makeSharedVerticeDistinct()
869 vertices.insert(packet); in makeSharedVerticeDistinct()
888 …inct (pa::Triangle& target, std::set<VertexPacket*, std::less<void*> >& vertices, VertexPacketAllo… in makeSharedVerticesDistinct() argument
890 makeSharedVerticeDistinct(target.v0, vertices, vpalloc); in makeSharedVerticesDistinct()
891 makeSharedVerticeDistinct(target.v1, vertices, vpalloc); in makeSharedVerticesDistinct()
892 makeSharedVerticeDistinct(target.v2, vertices, vpalloc); in makeSharedVerticesDistinct()
895 …Distinct (pa::Line& target, std::set<VertexPacket*, std::less<void*> >& vertices, VertexPacketAllo… in makeSharedVerticesDistinct() argument
897 makeSharedVerticeDistinct(target.v0, vertices, vpalloc); in makeSharedVerticesDistinct()
898 makeSharedVerticeDistinct(target.v1, vertices, vpalloc); in makeSharedVerticesDistinct()
901 …istinct (pa::Point& target, std::set<VertexPacket*, std::less<void*> >& vertices, VertexPacketAllo… in makeSharedVerticesDistinct() argument
903 makeSharedVerticeDistinct(target.v0, vertices, vpalloc); in makeSharedVerticesDistinct()
909 std::set<VertexPacket*, std::less<void*> > vertices; in makeSharedVerticesDistinct() local
912 makeSharedVerticesDistinct(*it, vertices, vpalloc); in makeSharedVerticesDistinct()
1394 …enderTarget& renderTarget, const Program& program, VertexPacket* const* vertices, size_t numVertic… in drawGeometryShaderOutputAsPrimitives() argument
1401 …PrimitiveTypeTraits<DrawPrimitiveType>::Assembler::exec(inputPrimitives.begin(), vertices, numVert… in drawGeometryShaderOutputAsPrimitives()
1427 copyVertexPacketPointers(primitives[primitiveNdx].vertices, input[primitiveNdx]); in drawWithGeometryShader()
1481 …enderTarget& renderTarget, const Program& program, VertexPacket* const* vertices, int numVertices,… in drawAsPrimitives() argument
1487 …PrimitiveTypeTraits<DrawPrimitiveType>::Assembler::exec(inputPrimitives.begin(), vertices, (size_t… in drawAsPrimitives()