Lines Matching refs:face
34 * front OR back face state (as set by glActiveStencilFaceEXT) is set.
41 * glStencilFuncSeparate(GLenum face, GLenum func, ...).
188 const GLint face = ctx->Stencil.ActiveFace;
190 if (face != 0) {
191 if (ctx->Stencil.Function[face] == func &&
192 ctx->Stencil.ValueMask[face] == mask &&
193 ctx->Stencil.Ref[face] == ref)
197 ctx->Stencil.Function[face] = func;
198 ctx->Stencil.Ref[face] = ref;
199 ctx->Stencil.ValueMask[face] = mask;
259 const GLint face = ctx->Stencil.ActiveFace;
264 if (face != 0) {
265 /* Only modify the EXT_stencil_two_side back-face state.
267 if (ctx->Stencil.WriteMask[face] == mask)
271 ctx->Stencil.WriteMask[face] = mask;
302 const GLint face = ctx->Stencil.ActiveFace;
304 if (face != 0) {
305 /* only set active face state */
306 if (ctx->Stencil.ZFailFunc[face] == zfail &&
307 ctx->Stencil.ZPassFunc[face] == zpass &&
308 ctx->Stencil.FailFunc[face] == fail)
312 ctx->Stencil.ZFailFunc[face] = zfail;
313 ctx->Stencil.ZPassFunc[face] = zpass;
314 ctx->Stencil.FailFunc[face] = fail;
371 _mesa_ActiveStencilFaceEXT(GLenum face)
383 if (face == GL_FRONT || face == GL_BACK) {
384 ctx->Stencil.ActiveFace = (face == GL_FRONT) ? 0 : 2;
387 _mesa_error(ctx, GL_INVALID_ENUM, "glActiveStencilFaceEXT(face)");
393 stencil_op_separate(struct gl_context *ctx, GLenum face, GLenum sfail,
396 if (face != GL_BACK) {
409 if (face != GL_FRONT) {
425 _mesa_StencilOpSeparate_no_error(GLenum face, GLenum sfail, GLenum zfail,
429 stencil_op_separate(ctx, face, sfail, zfail, zpass);
434 _mesa_StencilOpSeparate(GLenum face, GLenum sfail, GLenum zfail, GLenum zpass)
456 if (face != GL_FRONT && face != GL_BACK && face != GL_FRONT_AND_BACK) {
457 _mesa_error(ctx, GL_INVALID_ENUM, "glStencilOpSeparate(face)");
461 stencil_op_separate(ctx, face, sfail, zfail, zpass);
466 stencil_func_separate(struct gl_context *ctx, GLenum face, GLenum func,
472 if (face != GL_BACK) {
479 if (face != GL_FRONT) {
490 _mesa_StencilFuncSeparate_no_error(GLenum face, GLenum func, GLint ref,
494 stencil_func_separate(ctx, face, func, ref, mask);
499 _mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
506 if (face != GL_FRONT && face != GL_BACK && face != GL_FRONT_AND_BACK) {
507 _mesa_error(ctx, GL_INVALID_ENUM, "glStencilFuncSeparate(face)");
516 stencil_func_separate(ctx, face, func, ref, mask);
521 stencil_mask_separate(struct gl_context *ctx, GLenum face, GLuint mask)
526 if (face != GL_BACK) {
530 if (face != GL_FRONT) {
538 _mesa_StencilMaskSeparate_no_error(GLenum face, GLuint mask)
541 stencil_mask_separate(ctx, face, mask);
546 _mesa_StencilMaskSeparate(GLenum face, GLuint mask)
553 if (face != GL_FRONT && face != GL_BACK && face != GL_FRONT_AND_BACK) {
554 _mesa_error(ctx, GL_INVALID_ENUM, "glStencilaMaskSeparate(face)");
558 stencil_mask_separate(ctx, face, mask);