Lines Matching refs:v2
40 vertex_t* v0, vertex_t* v1, vertex_t* v2);
45 vertex_t* v0, vertex_t* v1, vertex_t* v2);
48 vertex_t* v0, vertex_t* v1, vertex_t* v2);
51 vertex_t* v0, vertex_t* v1, vertex_t* v2);
54 vertex_t* v0, vertex_t* v1, vertex_t* v2);
57 vertex_t* v0, vertex_t* v1, vertex_t* v2);
60 vertex_t* v0, vertex_t* v1, vertex_t* v2);
63 vertex_t* v0, vertex_t* v1, vertex_t* v2);
74 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkSmooth() argument
88 if(!(v2->flags & vertex_t::LIT)) { in lightTriangleDarkSmooth()
89 v2->flags |= vertex_t::LIT; in lightTriangleDarkSmooth()
91 v2->index & vertex_cache_t::INDEX_MASK); in lightTriangleDarkSmooth()
92 c->arrays.color.fetch(c, v2->color.v, cp); in lightTriangleDarkSmooth()
97 vertex_t* /*v0*/, vertex_t* /*v1*/, vertex_t* v2) in lightTriangleDarkFlat() argument
99 if (!(v2->flags & vertex_t::LIT)) { in lightTriangleDarkFlat()
100 v2->flags |= vertex_t::LIT; in lightTriangleDarkFlat()
102 v2->index & vertex_cache_t::INDEX_MASK); in lightTriangleDarkFlat()
103 c->arrays.color.fetch(c, v2->color.v, cp); in lightTriangleDarkFlat()
106 c->rasterizer.procs.color4xv(c, v2->color.v); in lightTriangleDarkFlat()
110 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleSmooth() argument
116 if(!(v2->flags & vertex_t::LIT)) in lightTriangleSmooth()
117 c->lighting.lightVertex(c, v2); in lightTriangleSmooth()
121 vertex_t* /*v0*/, vertex_t* /*v1*/, vertex_t* v2) in lightTriangleFlat() argument
123 if (!(v2->flags & vertex_t::LIT)) in lightTriangleFlat()
124 c->lighting.lightVertex(c, v2); in lightTriangleFlat()
126 c->rasterizer.procs.color4xv(c, v2->color.v); in lightTriangleFlat()
160 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkSmoothFog() argument
164 lightVertexDarkSmoothFog(c, v2); in lightTriangleDarkSmoothFog()
168 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkFlatFog() argument
172 lightVertexDarkSmoothFog(c, v2); in lightTriangleDarkFlatFog()
174 c->rasterizer.procs.color4xv(c, v2->color.v); in lightTriangleDarkFlatFog()
178 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleSmoothFog() argument
182 lightVertexSmoothFog(c, v2); in lightTriangleSmoothFog()
186 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleFlatFog() argument
190 lightVertexSmoothFog(c, v2); in lightTriangleFlatFog()
192 c->rasterizer.procs.color4xv(c, v2->color.v); in lightTriangleFlatFog()
237 vertex_t const* v0, vertex_t const* v1, vertex_t const* v2) in initTriangle() argument
241 m_dx20 = v0->window.x - v2->window.x; in initTriangle()
242 m_dy02 = v2->window.y - v0->window.y; in initTriangle()
392 vertex_t* v0, vertex_t* v1, vertex_t* v2) in fetch_texcoord_impl() argument
394 vertex_t* const vtx[3] = { v0, v1, v2 }; in fetch_texcoord_impl()
433 v2->flags |= vertex_t::TT; in fetch_texcoord_impl()
437 vertex_t* v0, vertex_t* v1, vertex_t* v2) in fetch_texcoord() argument
444 if (ggl_likely(v0->flags & v1->flags & v2->flags & vertex_t::TT)) { in fetch_texcoord()
448 fetch_texcoord_impl(c, v0, v1, v2); in fetch_texcoord()
576 vertex_t* v0, vertex_t* v1, vertex_t* v2) in primitive_clip_triangle() argument
578 uint32_t cc = (v0->flags | v1->flags | v2->flags) & vertex_t::CLIP_ALL; in primitive_clip_triangle()
585 c->lerp.initTriangle(v0, v1, v2); in primitive_clip_triangle()
586 if (cull_triangle(c, v0, v1, v2)) in primitive_clip_triangle()
590 fetch_texcoord(c, v0, v1, v2); in primitive_clip_triangle()
593 c->lighting.lightTriangle(c, v0, v1, v2); in primitive_clip_triangle()
595 triangle(c, v0, v1, v2); in primitive_clip_triangle()
605 fetch_texcoord(c, v0, v1, v2); in primitive_clip_triangle()
608 c->lighting.lightTriangle(c, v0, v1, v2); in primitive_clip_triangle()
610 clip_triangle(c, v0, v1, v2); in primitive_clip_triangle()
616 vertex_t* v0, vertex_t* v1, vertex_t* v2) in triangle() argument
627 lerp_triangle(c, v0, v1, v2); in triangle()
629 c->rasterizer.procs.trianglex(c, v0->window.v, v1->window.v, v2->window.v); in triangle()
633 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lerp_triangle() argument
641 lerp_texcoords_w(c, v0, v1, v2); in lerp_triangle()
643 lerp_texcoords(c, v0, v1, v2); in lerp_triangle()
654 const GGLcolor c2 = v2->color.v[i] * 255; in lerp_triangle()
664 const int32_t v2z = clampZ(v2->window.z); in lerp_triangle()
688 lerp.iterators1616(itf, v0->fog, v1->fog, v2->fog); in lerp_triangle()
717 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lerp_texcoords() argument
731 int32_t s2 = v2->texture[i].S; in lerp_texcoords()
732 int32_t t2 = v2->texture[i].T; in lerp_texcoords()
761 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lerp_texcoords_w() argument
770 int32_t w2 = v2->window.w; in lerp_texcoords_w()
788 int32_t s2 = v2->texture[i].S; in lerp_texcoords_w()
789 int32_t t2 = v2->texture[i].T; in lerp_texcoords_w()
852 vertex_t* v0, vertex_t* v1, vertex_t* v2) in clip_triangle() argument
854 uint32_t all_cc = (v0->flags | v1->flags | v2->flags) & vertex_t::CLIP_ALL; in clip_triangle()
869 vertex_t* in[3] = { v0, v1, v2 }; in clip_triangle()