Lines Matching refs:ctx
72 #define NEED_EDGEFLAG_SETUP (ctx->Polygon.FrontMode != GL_FILL || ctx->Polygon.BackMode != GL_FILL)
84 tnl->Driver.Render.Points( ctx, start, count )
91 LineFunc( ctx, v1, v2 ); \
93 clip_line_4( ctx, v1, v2, ormask ); \
101 TriangleFunc( ctx, v1, v2, v3 ); \
103 clip_tri_4( ctx, v1, v2, v3, ormask ); \
112 QuadFunc( ctx, v1, v2, v3, v4 ); \
114 clip_quad_4( ctx, v1, v2, v3, v4, ormask ); \
119 TNLcontext *tnl = TNL_CONTEXT(ctx); \
127 const GLboolean stipple = ctx->Line.StippleFlag; \
132 #define INIT(x) tnl->Driver.Render.PrimitiveNotify( ctx, x )
133 #define RESET_STIPPLE if (stipple) tnl->Driver.Render.ResetLineStipple( ctx )
149 static void clip_elt_triangles( struct gl_context *ctx,
154 TNLcontext *tnl = TNL_CONTEXT(ctx);
163 tnl->Driver.Render.PrimitiveNotify( ctx, GL_TRIANGLES );
172 render_tris( ctx, start, j, 0 );
174 clip_tri_4( ctx, elt[j], elt[j+1], elt[j+2], ormask );
180 render_tris( ctx, start, j, 0 );
187 #define NEED_EDGEFLAG_SETUP (ctx->Polygon.FrontMode != GL_FILL || ctx->Polygon.BackMode != GL_FILL)
195 tnl->Driver.Render.Points( ctx, start, count )
198 LineFunc( ctx, v1, v2 )
201 TriangleFunc( ctx, v1, v2, v3 )
204 QuadFunc( ctx, v1, v2, v3, v4 )
209 TNLcontext *tnl = TNL_CONTEXT(ctx); \
215 const GLboolean stipple = ctx->Line.StippleFlag; \
219 #define RESET_STIPPLE if (stipple) tnl->Driver.Render.ResetLineStipple( ctx )
220 #define INIT(x) tnl->Driver.Render.PrimitiveNotify( ctx, x )
238 void _tnl_RenderClippedPolygon( struct gl_context *ctx, const GLuint *elts, GLuint n )
240 TNLcontext *tnl = TNL_CONTEXT(ctx);
245 tnl->Driver.Render.PrimTabElts[GL_POLYGON]( ctx, 0, n, PRIM_BEGIN|PRIM_END );
249 void _tnl_RenderClippedLine( struct gl_context *ctx, GLuint ii, GLuint jj )
251 TNLcontext *tnl = TNL_CONTEXT(ctx);
252 tnl->Driver.Render.Line( ctx, ii, jj );
262 static GLboolean run_render( struct gl_context *ctx,
265 TNLcontext *tnl = TNL_CONTEXT(ctx);
276 tnl->Driver.Render.Start( ctx );
291 tnl->Driver.Render.BuildVertices( ctx, 0, VB->Count, ~0 );
321 tab[prim & PRIM_MODE_MASK]( ctx, start, start + length, prim );
324 tnl->Driver.Render.Multipass( ctx, ++pass ));
326 tnl->Driver.Render.Finish( ctx );