Lines Matching refs:vertex_t

37 static void primitive_point(ogles_context_t* c, vertex_t* v);
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);
42 static void primitive_nop_point(ogles_context_t* c, vertex_t* v);
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);
66 vertex_t* s, vertex_t* p);
74 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkSmooth()
76 if (!(v0->flags & vertex_t::LIT)) { in lightTriangleDarkSmooth()
77 v0->flags |= vertex_t::LIT; in lightTriangleDarkSmooth()
82 if (!(v1->flags & vertex_t::LIT)) { in lightTriangleDarkSmooth()
83 v1->flags |= vertex_t::LIT; in lightTriangleDarkSmooth()
88 if(!(v2->flags & vertex_t::LIT)) { in lightTriangleDarkSmooth()
89 v2->flags |= vertex_t::LIT; 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()
110 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleSmooth()
112 if (!(v0->flags & vertex_t::LIT)) in lightTriangleSmooth()
114 if (!(v1->flags & vertex_t::LIT)) in lightTriangleSmooth()
116 if(!(v2->flags & vertex_t::LIT)) in lightTriangleSmooth()
121 vertex_t* /*v0*/, vertex_t* /*v1*/, vertex_t* v2) in lightTriangleFlat() argument
123 if (!(v2->flags & vertex_t::LIT)) in lightTriangleFlat()
132 void lightVertexDarkSmoothFog(ogles_context_t* c, vertex_t* v) in lightVertexDarkSmoothFog()
134 if (!(v->flags & vertex_t::LIT)) { in lightVertexDarkSmoothFog()
135 v->flags |= vertex_t::LIT; in lightVertexDarkSmoothFog()
143 void lightVertexDarkFlatFog(ogles_context_t* c, vertex_t* v) in lightVertexDarkFlatFog()
145 if (!(v->flags & vertex_t::LIT)) { in lightVertexDarkFlatFog()
146 v->flags |= vertex_t::LIT; in lightVertexDarkFlatFog()
151 void lightVertexSmoothFog(ogles_context_t* c, vertex_t* v) in lightVertexSmoothFog()
153 if (!(v->flags & vertex_t::LIT)) { in lightVertexSmoothFog()
160 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkSmoothFog()
168 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkFlatFog()
178 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleSmoothFog()
186 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleFlatFog()
198 vertex_t*, vertex_t*, vertex_t*);
237 vertex_t const* v0, vertex_t const* v1, vertex_t const* v2) in initTriangle()
248 vertex_t const* v0, vertex_t const* v1) in initLine()
255 void compute_iterators_t::initLerp(vertex_t const* v0, uint32_t enables) in initLerp()
392 vertex_t* v0, vertex_t* v1, vertex_t* v2) in fetch_texcoord_impl()
394 vertex_t* const vtx[3] = { v0, v1, v2 }; in fetch_texcoord_impl()
402 vertex_t* const v = vtx[j]; in fetch_texcoord_impl()
403 if (v->flags & vertex_t::TT) in fetch_texcoord_impl()
431 v0->flags |= vertex_t::TT; in fetch_texcoord_impl()
432 v1->flags |= vertex_t::TT; 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()
444 if (ggl_likely(v0->flags & v1->flags & v2->flags & vertex_t::TT)) { in fetch_texcoord()
457 void primitive_nop_point(ogles_context_t*, vertex_t*) { in primitive_nop_point() argument
460 void primitive_point(ogles_context_t* c, vertex_t* v) in primitive_point()
465 if (ggl_unlikely(!(v->flags & vertex_t::LIT))) { in primitive_point()
469 v->flags |= vertex_t::LIT; in primitive_point()
530 void primitive_nop_line(ogles_context_t*, vertex_t*, vertex_t*) { in primitive_nop_line() argument
533 void primitive_line(ogles_context_t* c, vertex_t* v0, vertex_t* v1) in primitive_line()
542 if (ggl_unlikely((v0->flags | v1->flags) & vertex_t::CLIP_ALL)) { in primitive_line()
572 vertex_t* /*v0*/, vertex_t* /*v1*/, vertex_t* /*v2*/) { in primitive_nop_triangle() argument
576 vertex_t* v0, vertex_t* v1, vertex_t* v2) in primitive_clip_triangle()
578 uint32_t cc = (v0->flags | v1->flags | v2->flags) & vertex_t::CLIP_ALL; in primitive_clip_triangle()
616 vertex_t* v0, vertex_t* v1, vertex_t* v2) in triangle()
633 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lerp_triangle()
717 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lerp_texcoords()
761 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lerp_texcoords_w()
827 bool cull_triangle(ogles_context_t* c, vertex_t* /*v0*/, vertex_t* /*v1*/, vertex_t* /*v2*/) in cull_triangle() argument
852 vertex_t* v0, vertex_t* v1, vertex_t* v2) in clip_triangle()
854 uint32_t all_cc = (v0->flags | v1->flags | v2->flags) & vertex_t::CLIP_ALL; in clip_triangle()
856 vertex_t *p0, *p1, *p2; in clip_triangle()
864 vertex_t buffer[MAX_CLIPPING_PLANES * 2 + 1]; // ~3KB in clip_triangle()
865 vertex_t* buf = buffer; in clip_triangle()
869 vertex_t* in[3] = { v0, v1, v2 }; in clip_triangle()
874 vertex_t* out[2][MAX_CLIPPING_PLANES + MAX_VERTICES + 2]; in clip_triangle()
878 vertex_t** ivl = in; in clip_triangle()
889 if (ggl_unlikely(all_cc & vertex_t::USER_CLIP_ALL)) in clip_triangle()
892 uint32_t cc = (all_cc & vertex_t::USER_CLIP_ALL) >> 8; in clip_triangle()
896 vertex_t** const ovl = &out[outi][0]; in clip_triangle()
897 vertex_t** output = ovl; in clip_triangle()
901 vertex_t* s = ivl[ic-1]; in clip_triangle()
906 vertex_t* p = ivl[i]; in clip_triangle()
955 if (all_cc & vertex_t::FRUSTUM_CLIP_ALL) in clip_triangle()
958 uint32_t cc = all_cc & vertex_t::FRUSTUM_CLIP_ALL; in clip_triangle()
962 vertex_t** const ovl = &out[outi][0]; in clip_triangle()
963 vertex_t** output = ovl; in clip_triangle()
967 vertex_t* s = ivl[ic-1]; in clip_triangle()
971 vertex_t* p = ivl[i]; in clip_triangle()
1034 unsigned int clip_line(ogles_context_t* c, vertex_t* s, vertex_t* p) in clip_line()
1036 const uint32_t all_cc = (s->flags | p->flags) & vertex_t::CLIP_ALL; in clip_line()
1038 if (ggl_unlikely(all_cc & vertex_t::USER_CLIP_ALL)) in clip_line()
1041 uint32_t cc = (all_cc & vertex_t::USER_CLIP_ALL) >> 8; in clip_line()
1074 if (all_cc & vertex_t::FRUSTUM_CLIP_ALL) in clip_line()
1077 uint32_t cc = all_cc & vertex_t::FRUSTUM_CLIP_ALL; in clip_line()