Home | History | Annotate | Download | only in swrast

Lines Matching full:ctx

41 compute_stipple_mask( struct gl_context *ctx, GLuint len, GLubyte mask[] )
43 SWcontext *swrast = SWRAST_CONTEXT(ctx);
47 GLuint bit = (swrast->StippleCounter / ctx->Line.StippleFactor) & 0xf;
48 if ((1 << bit) & ctx->Line.StipplePattern) {
63 draw_wide_line( struct gl_context *ctx, SWspan *span, GLboolean xMajor )
65 const GLint width = (GLint) CLAMP(ctx->Line.Width,
66 ctx->Const.MinLineWidth,
67 ctx->Const.MaxLineWidth);
90 _swrast_write_rgba_span(ctx, span);
106 _swrast_write_rgba_span(ctx, span);
120 #define RENDER_SPAN(span) _swrast_write_rgba_span(ctx, &span);
129 if (ctx->Line.StippleFlag) { \
131 compute_stipple_mask(ctx, span.end, span.array->mask); \
133 if (ctx->Line.Width > 1.0) { \
134 draw_wide_line(ctx, &span, (GLboolean)(dx > dy)); \
137 _swrast_write_rgba_span(ctx, &span); \
148 if (ctx->Line.StippleFlag) { \
150 compute_stipple_mask(ctx, span.end, span.array->mask); \
152 if (ctx->Line.Width > 1.0) { \
153 draw_wide_line(ctx, &span, (GLboolean)(dx > dy)); \
156 _swrast_write_rgba_span(ctx, &span); \
163 _swrast_add_spec_terms_line(struct gl_context *ctx,
189 SWRAST_CONTEXT(ctx)->SpecLine( ctx, ncv0, ncv1 );
225 _swrast_choose_line( struct gl_context *ctx )
227 SWcontext *swrast = SWRAST_CONTEXT(ctx);
228 GLboolean specular = (ctx->Fog.ColorSumEnabled ||
229 (ctx->Light.Enabled &&
230 ctx->Light.Model.ColorControl == GL_SEPARATE_SPECULAR_COLOR));
232 if (ctx->RenderMode == GL_RENDER) {
233 if (ctx->Line.SmoothFlag) {
235 _swrast_choose_aa_line_function(ctx);
238 else if (ctx->Texture._EnabledCoordUnits
239 || _swrast_use_fragment_program(ctx)
244 else if (ctx->Depth.Test
245 || ctx->Line.Width != 1.0
246 || ctx->Line.StippleFlag) {
255 ASSERT(!ctx->Depth.Test);
256 ASSERT(ctx->Line.Width == 1.0);
261 else if (ctx->RenderMode == GL_FEEDBACK) {
265 ASSERT(ctx->RenderMode == GL_SELECT);