Home | History | Annotate | Download | only in main

Lines Matching defs:face

34  * front OR back face state (as set by glActiveStencilFaceEXT) is set.
41 * glStencilFuncSeparate(GLenum face, GLenum func, ...).
198 const GLint face = ctx->Stencil.ActiveFace;
211 if (face != 0) {
212 if (ctx->Stencil.Function[face] == func &&
213 ctx->Stencil.ValueMask[face] == mask &&
214 ctx->Stencil.Ref[face] == ref)
217 ctx->Stencil.Function[face] = func;
218 ctx->Stencil.Ref[face] = ref;
219 ctx->Stencil.ValueMask[face] = mask;
266 const GLint face = ctx->Stencil.ActiveFace;
273 if (face != 0) {
274 /* Only modify the EXT_stencil_two_side back-face state.
276 if (ctx->Stencil.WriteMask[face] == mask)
279 ctx->Stencil.WriteMask[face] = mask;
323 const GLint face = ctx->Stencil.ActiveFace;
343 if (face != 0) {
344 /* only set active face state */
345 if (ctx->Stencil.ZFailFunc[face] == zfail &&
346 ctx->Stencil.ZPassFunc[face] == zpass &&
347 ctx->Stencil.FailFunc[face] == fail)
350 ctx->Stencil.ZFailFunc[face] = zfail;
351 ctx->Stencil.ZPassFunc[face] = zpass;
352 ctx->Stencil.FailFunc[face] = fail;
388 _mesa_ActiveStencilFaceEXT(GLenum face)
401 if (face == GL_FRONT || face == GL_BACK) {
403 ctx->Stencil.ActiveFace = (face == GL_FRONT) ? 0 : 2;
406 _mesa_error(ctx, GL_INVALID_ENUM, "glActiveStencilFaceEXT(face)");
420 _mesa_StencilOpSeparate(GLenum face, GLenum sfail, GLenum zfail, GLenum zpass)
441 if (face != GL_FRONT && face != GL_BACK && face != GL_FRONT_AND_BACK) {
442 _mesa_error(ctx, GL_INVALID_ENUM, "glStencilOpSeparate(face)");
446 if (face != GL_BACK) {
458 if (face != GL_FRONT) {
471 ctx->Driver.StencilOpSeparate(ctx, face, sfail, zfail, zpass);
478 _mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
487 if (face != GL_FRONT && face != GL_BACK && face != GL_FRONT_AND_BACK) {
488 _mesa_error(ctx, GL_INVALID_ENUM, "glStencilFuncSeparate(face)");
500 if (face != GL_BACK) {
506 if (face != GL_FRONT) {
513 ctx->Driver.StencilFuncSeparate(ctx, face, func, ref, mask);
520 _mesa_StencilMaskSeparate(GLenum face, GLuint mask)
528 if (face != GL_FRONT && face != GL_BACK && face != GL_FRONT_AND_BACK) {
529 _mesa_error(ctx, GL_INVALID_ENUM, "glStencilaMaskSeparate(face)");
535 if (face != GL_BACK) {
538 if (face != GL_FRONT) {
542 ctx->Driver.StencilMaskSeparate(ctx, face, mask);
553 face = ctx->Stencil._BackFace;
560 (ctx->Stencil.Function[0] != ctx->Stencil.Function[face] ||
561 ctx->Stencil.FailFunc[0] != ctx->Stencil.FailFunc[face] ||
562 ctx->Stencil.ZPassFunc[0] != ctx->Stencil.ZPassFunc[face] ||
563 ctx->Stencil.ZFailFunc[0] != ctx->Stencil.ZFailFunc[face] ||
564 ctx->Stencil.Ref[0] != ctx->Stencil.Ref[face] ||
565 ctx->Stencil.ValueMask[0] != ctx->Stencil.ValueMask[face] ||
566 ctx->Stencil.WriteMask[0] != ctx->Stencil.WriteMask[face]);