• Home
  • Raw
  • Download

Lines Matching refs:mode

57 cull_face(struct gl_context *ctx, GLenum mode, bool no_error)  in cull_face()  argument
59 if (ctx->Polygon.CullFaceMode == mode) in cull_face()
63 mode != GL_FRONT && mode != GL_BACK && mode != GL_FRONT_AND_BACK) { in cull_face()
71 ctx->Polygon.CullFaceMode = mode; in cull_face()
76 _mesa_CullFace_no_error(GLenum mode) in _mesa_CullFace_no_error() argument
79 cull_face(ctx, mode, true); in _mesa_CullFace_no_error()
84 _mesa_CullFace(GLenum mode) in _mesa_CullFace() argument
89 _mesa_debug(ctx, "glCullFace %s\n", _mesa_enum_to_string(mode)); in _mesa_CullFace()
91 cull_face(ctx, mode, false); in _mesa_CullFace()
107 front_face(struct gl_context *ctx, GLenum mode, bool no_error) in front_face() argument
109 if (ctx->Polygon.FrontFace == mode) in front_face()
112 if (!no_error && mode != GL_CW && mode != GL_CCW) { in front_face()
120 ctx->Polygon.FrontFace = mode; in front_face()
125 _mesa_FrontFace_no_error(GLenum mode) in _mesa_FrontFace_no_error() argument
128 front_face(ctx, mode, true); in _mesa_FrontFace_no_error()
133 _mesa_FrontFace(GLenum mode) in _mesa_FrontFace() argument
138 _mesa_debug(ctx, "glFrontFace %s\n", _mesa_enum_to_string(mode)); in _mesa_FrontFace()
140 front_face(ctx, mode, false); in _mesa_FrontFace()
157 polygon_mode(struct gl_context *ctx, GLenum face, GLenum mode, bool no_error) in polygon_mode() argument
166 _mesa_enum_to_string(mode)); in polygon_mode()
169 switch (mode) { in polygon_mode()
190 if (ctx->Polygon.FrontMode == mode) in polygon_mode()
195 ctx->Polygon.FrontMode = mode; in polygon_mode()
198 if (ctx->Polygon.FrontMode == mode && ctx->Polygon.BackMode == mode) in polygon_mode()
203 ctx->Polygon.FrontMode = mode; in polygon_mode()
204 ctx->Polygon.BackMode = mode; in polygon_mode()
211 if (ctx->Polygon.BackMode == mode) in polygon_mode()
216 ctx->Polygon.BackMode = mode; in polygon_mode()
225 (mode == GL_FILL_RECTANGLE_NV || old_mode_has_fill_rectangle)) in polygon_mode()
231 _mesa_PolygonMode_no_error(GLenum face, GLenum mode) in _mesa_PolygonMode_no_error() argument
234 polygon_mode(ctx, face, mode, true); in _mesa_PolygonMode_no_error()
239 _mesa_PolygonMode(GLenum face, GLenum mode) in _mesa_PolygonMode() argument
242 polygon_mode(ctx, face, mode, false); in _mesa_PolygonMode()