Lines Matching refs:v1
38 static void primitive_line(ogles_context_t* c, vertex_t* v0, vertex_t* v1);
40 vertex_t* v0, vertex_t* v1, vertex_t* v2);
43 static void primitive_nop_line(ogles_context_t* c, vertex_t* v0, vertex_t* v1);
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
82 if (!(v1->flags & vertex_t::LIT)) { in lightTriangleDarkSmooth()
83 v1->flags |= vertex_t::LIT; in lightTriangleDarkSmooth()
85 v1->index & vertex_cache_t::INDEX_MASK); in lightTriangleDarkSmooth()
86 c->arrays.color.fetch(c, v1->color.v, cp); in lightTriangleDarkSmooth()
110 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleSmooth() argument
114 if (!(v1->flags & vertex_t::LIT)) in lightTriangleSmooth()
115 c->lighting.lightVertex(c, v1); in lightTriangleSmooth()
160 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkSmoothFog() argument
163 lightVertexDarkSmoothFog(c, v1); in lightTriangleDarkSmoothFog()
168 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkFlatFog() argument
171 lightVertexDarkFlatFog(c, v1); in lightTriangleDarkFlatFog()
178 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleSmoothFog() argument
181 lightVertexSmoothFog(c, v1); in lightTriangleSmoothFog()
186 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleFlatFog() argument
189 lightVertexDarkFlatFog(c, v1); in lightTriangleFlatFog()
237 vertex_t const* v0, vertex_t const* v1, vertex_t const* v2) in initTriangle() argument
239 m_dx01 = v1->window.x - v0->window.x; in initTriangle()
240 m_dy10 = v0->window.y - v1->window.y; in initTriangle()
248 vertex_t const* v0, vertex_t const* v1) in initLine() argument
250 m_dx01 = m_dy02 = v1->window.x - v0->window.x; in initLine()
251 m_dy10 = m_dx20 = v0->window.y - v1->window.y; in initLine()
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()
432 v1->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()
533 void primitive_line(ogles_context_t* c, vertex_t* v0, vertex_t* v1) in primitive_line() argument
536 fetch_texcoord(c, v0, v1, v1); in primitive_line()
539 c->lighting.lightTriangle(c, v0, v1, v1); in primitive_line()
542 if (ggl_unlikely((v0->flags | v1->flags) & vertex_t::CLIP_ALL)) { in primitive_line()
543 unsigned int count = clip_line(c, v0, v1); in primitive_line()
557 c->lerp.initLine(v0, v1); in primitive_line()
558 lerp_triangle(c, v0, v1, v0); in primitive_line()
562 c->rasterizer.procs.linex(c, v0->window.v, v1->window.v, c->line.width); in primitive_line()
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()
653 const GGLcolor c1 = v1->color.v[i] * 255; in lerp_triangle()
663 const int32_t v1z = clampZ(v1->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
729 int32_t s1 = v1->texture[i].S; in lerp_texcoords()
730 int32_t t1 = v1->texture[i].T; in lerp_texcoords()
761 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lerp_texcoords_w() argument
769 int32_t w1 = v1->window.w; in lerp_texcoords_w()
786 int32_t s1 = v1->texture[i].S; in lerp_texcoords_w()
787 int32_t t1 = v1->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()