]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/stenciltest.h
Use default member initializers for simple types
[libs/gl.git] / source / core / stenciltest.h
index e33882dfc566570c38da5b4e3dbb4c581a10d92c..47e7a62787ff5bc0603b89732dfccbe71991def2 100644 (file)
@@ -37,22 +37,20 @@ 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;
 };
 
-unsigned get_gl_stencil_op(StencilOp);
-
 void operator>>(const LexicalConverter &, StencilOp &);
 void operator<<(LexicalConverter &, StencilOp);
 
 } // namespace GL
 } // namespace Msp
 
+#include "stenciltest_backend.h"
+
 #endif