Lines Matching defs:ctx
41 _mesa_update_clip_plane(struct gl_context *ctx, GLuint plane)
44 if (_math_matrix_is_dirty(ctx->ProjectionMatrixStack.Top))
45 _math_matrix_analyse( ctx->ProjectionMatrixStack.Top );
48 _mesa_transform_vector(ctx->Transform._ClipUserPlane[plane],
49 ctx->Transform.EyeUserPlane[plane],
50 ctx->ProjectionMatrixStack.Top->inv);
57 GET_CURRENT_CONTEXT(ctx);
62 if (p < 0 || p >= (GLint) ctx->Const.MaxClipPlanes) {
63 _mesa_error( ctx, GL_INVALID_ENUM, "glClipPlane" );
80 if (_math_matrix_is_dirty(ctx->ModelviewMatrixStack.Top))
81 _math_matrix_analyse( ctx->ModelviewMatrixStack.Top );
84 ctx->ModelviewMatrixStack.Top->inv );
86 if (TEST_EQ_4V(ctx->Transform.EyeUserPlane[p], equation))
90 FLUSH_VERTICES(ctx, _NEW_TRANSFORM, GL_TRANSFORM_BIT);
91 ctx->NewDriverState |= ST_NEW_CLIP_STATE;
92 COPY_4FV(ctx->Transform.EyeUserPlane[p], equation);
94 if (ctx->Transform.ClipPlanesEnabled & (1 << p)) {
95 _mesa_update_clip_plane(ctx, p);
103 GET_CURRENT_CONTEXT(ctx);
107 if (p < 0 || p >= (GLint) ctx->Const.MaxClipPlanes) {
108 _mesa_error( ctx, GL_INVALID_ENUM, "glGetClipPlane" );
112 equation[0] = (GLdouble) ctx->Transform.EyeUserPlane[p][0];
113 equation[1] = (GLdouble) ctx->Transform.EyeUserPlane[p][1];
114 equation[2] = (GLdouble) ctx->Transform.EyeUserPlane[p][2];
115 equation[3] = (GLdouble) ctx->Transform.EyeUserPlane[p][3];