1 #ifndef MSP_GL_STENCILTEST_H_
2 #define MSP_GL_STENCILTEST_H_
4 #include <msp/datafile/objectloader.h>
5 #include <msp/strings/lexicalcast.h>
24 Tests values in the stencil buffer against a reference. If the test fails, the
25 incoming fragment is discarded. The stencil buffer may be modified according
26 to results of the stencil test and the depth test.
30 class Loader: public DataFile::ObjectLoader<StencilTest>
33 Loader(StencilTest &);
36 void compare(Predicate);
37 void actions(StencilOp, StencilOp, StencilOp);
41 Predicate compare = ALWAYS;
42 StencilOp stencil_fail_op = KEEP;
43 StencilOp depth_fail_op = KEEP;
44 StencilOp depth_pass_op = KEEP;
45 unsigned reference = 0;
48 void operator>>(const LexicalConverter &, StencilOp &);
49 void operator<<(LexicalConverter &, StencilOp);
54 #include "stenciltest_backend.h"