Lines Matching defs:ctx
33 static void TAG(triangle)(GLcontext *ctx, GLuint e0, GLuint e1, GLuint e2 )
35 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb;
36 SScontext *swsetup = SWSETUP_CONTEXT(ctx);
37 SWvertex *verts = SWSETUP_CONTEXT(ctx)->verts;
62 facing = (cc < 0.0) ^ ctx->Polygon._FrontBit;
65 mode = facing ? ctx->Polygon.BackMode : ctx->Polygon.FrontMode;
144 const GLfloat max = ctx->DrawBuffer->_DepthMaxF;
152 offset = ctx->Polygon.OffsetUnits;
159 offset += MAX2(dzdx, dzdy) * ctx->Polygon.OffsetFactor;
169 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetPoint) {
174 _swsetup_render_point_tri( ctx, e0, e1, e2, facing );
176 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetLine) {
181 _swsetup_render_line_tri( ctx, e0, e1, e2, facing );
183 if ((IND & SS_OFFSET_BIT) && ctx->Polygon.OffsetFill) {
188 _swrast_Triangle( ctx, v[0], v[1], v[2] );
234 static void TAG(quadfunc)( GLcontext *ctx, GLuint v0,
238 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb;
243 TAG(triangle)( ctx, v0, v1, v3 );
246 TAG(triangle)( ctx, v1, v2, v3 );
250 TAG(triangle)( ctx, v0, v1, v3 );
251 TAG(triangle)( ctx, v1, v2, v3 );