Lines Matching refs:ctx

36 feedback_vertex(struct gl_context * ctx, const SWvertex * v, const SWvertex * pv)
44 win[2] = v->attrib[VARYING_SLOT_POS][2] / ctx->DrawBuffer->_DepthMaxF;
47 _mesa_feedback_vertex(ctx, win, color, vtc);
55 _swrast_feedback_triangle(struct gl_context *ctx, const SWvertex *v0,
58 if (!_swrast_culltriangle(ctx, v0, v1, v2)) {
59 _mesa_feedback_token(ctx, (GLfloat) (GLint) GL_POLYGON_TOKEN);
60 _mesa_feedback_token(ctx, (GLfloat) 3); /* three vertices */
62 if (ctx->Light.ShadeModel == GL_SMOOTH) {
63 feedback_vertex(ctx, v0, v0);
64 feedback_vertex(ctx, v1, v1);
65 feedback_vertex(ctx, v2, v2);
68 feedback_vertex(ctx, v0, v2);
69 feedback_vertex(ctx, v1, v2);
70 feedback_vertex(ctx, v2, v2);
77 _swrast_feedback_line(struct gl_context *ctx, const SWvertex *v0,
81 SWcontext *swrast = SWRAST_CONTEXT(ctx);
86 _mesa_feedback_token(ctx, (GLfloat) (GLint) token);
88 if (ctx->Light.ShadeModel == GL_SMOOTH) {
89 feedback_vertex(ctx, v0, v0);
90 feedback_vertex(ctx, v1, v1);
93 feedback_vertex(ctx, v0, v1);
94 feedback_vertex(ctx, v1, v1);
102 _swrast_feedback_point(struct gl_context *ctx, const SWvertex *v)
104 _mesa_feedback_token(ctx, (GLfloat) (GLint) GL_POINT_TOKEN);
105 feedback_vertex(ctx, v, v);
110 _swrast_select_triangle(struct gl_context *ctx, const SWvertex *v0,
113 if (!_swrast_culltriangle(ctx, v0, v1, v2)) {
114 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF;
116 _mesa_update_hitflag( ctx, v0->attrib[VARYING_SLOT_POS][2] * zs );
117 _mesa_update_hitflag( ctx, v1->attrib[VARYING_SLOT_POS][2] * zs );
118 _mesa_update_hitflag( ctx, v2->attrib[VARYING_SLOT_POS][2] * zs );
124 _swrast_select_line(struct gl_context *ctx, const SWvertex *v0, const SWvertex *v1)
126 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF;
127 _mesa_update_hitflag( ctx, v0->attrib[VARYING_SLOT_POS][2] * zs );
128 _mesa_update_hitflag( ctx, v1->attrib[VARYING_SLOT_POS][2] * zs );
133 _swrast_select_point(struct gl_context *ctx, const SWvertex *v)
135 const GLfloat zs = 1.0F / ctx->DrawBuffer->_DepthMaxF;
136 _mesa_update_hitflag( ctx, v->attrib[VARYING_SLOT_POS][2] * zs );