Lines Matching defs:targetStencil

177 	virtual void		genOps				(vector<StencilOp>& dst, int stencilBits, int depthBits, int targetStencil) = DE_NULL;
387 typedef void (*GenStencilOpsFunc) (vector<StencilOp>& dst, int stencilBits, int depthBits, int targetStencil);
398 void genOps (vector<StencilOp>& dst, int stencilBits, int depthBits, int targetStencil)
400 m_genOps(dst, stencilBits, depthBits, targetStencil);
412 static void genOps (vector<StencilOp>& dst, int stencilBits, int depthBits, int targetStencil) \
425 dst.push_back(StencilOp::clearStencil(targetStencil | ~mask));
431 dst.push_back(StencilOp::quad(GL_NEVER, targetStencil, GL_ALWAYS, 0.0f, GL_REPLACE, GL_KEEP, GL_KEEP));
436 dst.push_back(StencilOp::quad(GL_ALWAYS, targetStencil, GL_LESS, 0.5f, GL_KEEP, GL_REPLACE, GL_KEEP));
440 dst.push_back(StencilOp::quad(GL_ALWAYS, targetStencil, GL_LESS, 0.0f, GL_KEEP, GL_KEEP, GL_REPLACE));
446 if (targetStencil > 0)
448 dst.push_back(StencilOp::clearStencil(targetStencil-1));
449 dst.push_back(StencilOp::quad(GL_EQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_INCR, GL_KEEP, GL_KEEP));
452 dst.push_back(StencilOp::clearStencil(targetStencil));
457 if (targetStencil < maxStencil)
459 dst.push_back(StencilOp::clearStencil(targetStencil+1));
460 dst.push_back(StencilOp::quad(GL_EQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_DECR, GL_KEEP, GL_KEEP));
463 dst.push_back(StencilOp::clearStencil(targetStencil));
468 dst.push_back(StencilOp::clearStencil((targetStencil-1)&maxStencil));
469 dst.push_back(StencilOp::quad(GL_EQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_INCR_WRAP, GL_KEEP, GL_KEEP));
474 dst.push_back(StencilOp::clearStencil((targetStencil+1)&maxStencil));
475 dst.push_back(StencilOp::quad(GL_EQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_DECR_WRAP, GL_KEEP, GL_KEEP));
481 dst.push_back(StencilOp::clearStencil(targetStencil));
482 dst.push_back(StencilOp::quad(GL_NOTEQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_ZERO, GL_KEEP, GL_KEEP));
483 dst.push_back(StencilOp::quad(GL_EQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_REPLACE, GL_KEEP, GL_KEEP));
488 dst.push_back(StencilOp::clearStencil((~targetStencil)&mask));
489 dst.push_back(StencilOp::quad(GL_EQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_INVERT, GL_KEEP, GL_KEEP));
496 int inv = (~targetStencil)&mask;
504 int inv = (~targetStencil)&mask;
506 dst.push_back(StencilOp::quad(GL_NOTEQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_INVERT));
507 dst.push_back(StencilOp::quad(GL_NOTEQUAL, targetStencil, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_INVERT));
512 if (targetStencil < maxStencil)
514 dst.push_back(StencilOp::clearStencil(targetStencil+1));
515 dst.push_back(StencilOp::quad(GL_LESS, targetStencil, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_DECR));
516 dst.push_back(StencilOp::quad(GL_LESS, targetStencil, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_DECR));
519 dst.push_back(StencilOp::clearStencil(targetStencil));
524 if (targetStencil < maxStencil)
526 dst.push_back(StencilOp::clearStencil(targetStencil+1));
527 dst.push_back(StencilOp::quad(GL_LEQUAL, targetStencil+1, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_DECR));
528 dst.push_back(StencilOp::quad(GL_LEQUAL, targetStencil+1, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_DECR));
531 dst.push_back(StencilOp::clearStencil(targetStencil));
535 if (targetStencil > 0)
537 dst.push_back(StencilOp::clearStencil(targetStencil-1));
538 dst.push_back(StencilOp::quad(GL_GREATER, targetStencil, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_INCR));
539 dst.push_back(StencilOp::quad(GL_GREATER, targetStencil, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_INCR));
542 dst.push_back(StencilOp::clearStencil(targetStencil));
546 if (targetStencil > 0)
548 dst.push_back(StencilOp::clearStencil(targetStencil-1));
549 dst.push_back(StencilOp::quad(GL_GEQUAL, targetStencil-1, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_INCR));
550 dst.push_back(StencilOp::quad(GL_GEQUAL, targetStencil-1, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_INCR));
553 dst.push_back(StencilOp::clearStencil(targetStencil));
559 dst.push_back(StencilOp::clearStencil(~targetStencil));
560 StencilOp op = StencilOp::quad(GL_EQUAL, (~targetStencil | ~mask) & valMask, GL_ALWAYS, 0.0f, GL_KEEP, GL_KEEP, GL_INVERT);