3 This file is part of libmspgl
4 Copyright © 2007, 2010 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_TESTS_H_
9 #define MSP_GL_TESTS_H_
13 #include "predicate.h"
19 Tests incoming fragment alpha values against a reference. If the test fails,
20 the fragment is discarded.
22 class AlphaTest: public Bindable<AlphaTest>
30 AlphaTest(Predicate, float);
39 Tests incoming fragment depth values against the depth buffer. If the test
40 fails, the fragment is discarded.
42 class DepthTest: public Bindable<DepthTest>
50 DepthTest(Predicate, bool = true);
54 static const DepthTest &lequal();
60 Tests fragment coordinates against a rectangle. Any fragments outside the
61 rectangle are discarded.
63 class ScissorTest: public Bindable<ScissorTest>
73 ScissorTest(int, int, unsigned, unsigned);