X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fstenciltest.h;h=c6a385d37f7e7efabbcc158cffc19c5c51eee2d4;hb=c356a20547afae97b412da36e0b0a7d51e879401;hp=652f8d4093b9ac3bdb82135d2a6fe834c36880ae;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git diff --git a/source/core/stenciltest.h b/source/core/stenciltest.h index 652f8d40..c6a385d3 100644 --- a/source/core/stenciltest.h +++ b/source/core/stenciltest.h @@ -13,8 +13,8 @@ enum StencilOp KEEP, SET_ZERO, REPLACE, - INCR, - DECR, + INCR_CLAMP, + DECR_CLAMP, INVERT, INCR_WRAP, DECR_WRAP @@ -37,14 +37,12 @@ struct StencilTest void actions(StencilOp, StencilOp, StencilOp); }; - bool enabled; - Predicate compare; - StencilOp stencil_fail_op; - StencilOp depth_fail_op; - StencilOp depth_pass_op; - unsigned reference; - - StencilTest(); + bool enabled = false; + Predicate compare = ALWAYS; + StencilOp stencil_fail_op = KEEP; + StencilOp depth_fail_op = KEEP; + StencilOp depth_pass_op = KEEP; + unsigned reference = 0; }; void operator>>(const LexicalConverter &, StencilOp &);