Home | History | Annotate | Download | only in main

Lines Matching refs:ctx

43    GET_CURRENT_CONTEXT(ctx);
44 ASSERT_OUTSIDE_BEGIN_END(ctx);
47 _mesa_debug(ctx, "glLineWidth %f\n", width);
50 _mesa_error( ctx, GL_INVALID_VALUE, "glLineWidth" );
64 if (ctx->API == API_OPENGL_CORE
65 && ((ctx->Const.ContextFlags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT)
67 _mesa_error( ctx, GL_INVALID_VALUE, "glLineWidth" );
71 if (ctx->Line.Width == width)
74 FLUSH_VERTICES(ctx, _NEW_LINE);
75 ctx->Line.Width = width;
77 if (ctx->Driver.LineWidth)
78 ctx->Driver.LineWidth(ctx, width);
97 GET_CURRENT_CONTEXT(ctx);
98 ASSERT_OUTSIDE_BEGIN_END(ctx);
101 _mesa_debug(ctx, "glLineStipple %d %u\n", factor, pattern);
105 if (ctx->Line.StippleFactor == factor &&
106 ctx->Line.StipplePattern == pattern)
109 FLUSH_VERTICES(ctx, _NEW_LINE);
110 ctx->Line.StippleFactor = factor;
111 ctx->Line.StipplePattern = pattern;
113 if (ctx->Driver.LineStipple)
114 ctx->Driver.LineStipple( ctx, factor, pattern );
121 * \param ctx GL context.
127 _mesa_init_line( struct gl_context * ctx )
129 ctx->Line.SmoothFlag = GL_FALSE;
130 ctx->Line.StippleFlag = GL_FALSE;
131 ctx->Line.Width = 1.0;
132 ctx->Line.StipplePattern = 0xffff;
133 ctx->Line.StippleFactor = 1;