Lines Matching refs:mode
54 _mesa_CullFace( GLenum mode ) in _mesa_CullFace() argument
60 _mesa_debug(ctx, "glCullFace %s\n", _mesa_lookup_enum_by_nr(mode)); in _mesa_CullFace()
62 if (mode!=GL_FRONT && mode!=GL_BACK && mode!=GL_FRONT_AND_BACK) { in _mesa_CullFace()
67 if (ctx->Polygon.CullFaceMode == mode) in _mesa_CullFace()
71 ctx->Polygon.CullFaceMode = mode; in _mesa_CullFace()
74 ctx->Driver.CullFace( ctx, mode ); in _mesa_CullFace()
90 _mesa_FrontFace( GLenum mode ) in _mesa_FrontFace() argument
96 _mesa_debug(ctx, "glFrontFace %s\n", _mesa_lookup_enum_by_nr(mode)); in _mesa_FrontFace()
98 if (mode!=GL_CW && mode!=GL_CCW) { in _mesa_FrontFace()
103 if (ctx->Polygon.FrontFace == mode) in _mesa_FrontFace()
107 ctx->Polygon.FrontFace = mode; in _mesa_FrontFace()
109 ctx->Polygon._FrontBit = (GLboolean) (mode == GL_CW); in _mesa_FrontFace()
112 ctx->Driver.FrontFace( ctx, mode ); in _mesa_FrontFace()
129 _mesa_PolygonMode( GLenum face, GLenum mode ) in _mesa_PolygonMode() argument
137 _mesa_lookup_enum_by_nr(mode)); in _mesa_PolygonMode()
139 if (mode!=GL_POINT && mode!=GL_LINE && mode!=GL_FILL) { in _mesa_PolygonMode()
150 if (ctx->Polygon.FrontMode == mode) in _mesa_PolygonMode()
153 ctx->Polygon.FrontMode = mode; in _mesa_PolygonMode()
156 if (ctx->Polygon.FrontMode == mode && in _mesa_PolygonMode()
157 ctx->Polygon.BackMode == mode) in _mesa_PolygonMode()
160 ctx->Polygon.FrontMode = mode; in _mesa_PolygonMode()
161 ctx->Polygon.BackMode = mode; in _mesa_PolygonMode()
168 if (ctx->Polygon.BackMode == mode) in _mesa_PolygonMode()
171 ctx->Polygon.BackMode = mode; in _mesa_PolygonMode()
184 ctx->Driver.PolygonMode(ctx, face, mode); in _mesa_PolygonMode()