Lines Matching refs:clip
69 const int32_t rw = gglRecip28(v->clip.w); in perspective()
72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28); in perspective()
73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28); in perspective()
77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28); in perspective()
89 uint32_t clip = v->flags & vertex_t::CLIP_ALL; in clipFrustumPerspective() local
90 const GLfixed w = v->clip.w; in clipFrustumPerspective()
91 if (v->clip.x < -w) clip |= vertex_t::CLIP_L; in clipFrustumPerspective()
92 if (v->clip.x > w) clip |= vertex_t::CLIP_R; in clipFrustumPerspective()
93 if (v->clip.y < -w) clip |= vertex_t::CLIP_B; in clipFrustumPerspective()
94 if (v->clip.y > w) clip |= vertex_t::CLIP_T; in clipFrustumPerspective()
95 if (v->clip.z < -w) clip |= vertex_t::CLIP_N; in clipFrustumPerspective()
96 if (v->clip.z > w) clip |= vertex_t::CLIP_F; in clipFrustumPerspective()
98 v->flags |= clip; in clipFrustumPerspective()
99 c->arrays.cull &= clip; in clipFrustumPerspective()
101 if (ggl_likely(!clip)) { in clipFrustumPerspective()
118 uint32_t clip = 0; in clipAllPerspective() local
126 clip |= 0x100<<i; in clipAllPerspective()
129 v->flags |= clip; in clipAllPerspective()
145 v->window.x = TRI_FROM_FIXED(v->clip.x); in ogles_vertex_perspective2D()
146 v->window.y = TRI_FROM_FIXED(v->clip.y); in ogles_vertex_perspective2D()
147 v->window.z = v->clip.z; in ogles_vertex_perspective2D()
148 v->window.w = v->clip.w << 12; in ogles_vertex_perspective2D()