]> git.tdb.fi Git - libs/gl.git/blob - source/core/tests.h
Redesign depth and stencil test and blend state management
[libs/gl.git] / source / core / tests.h
1 #ifndef MSP_GL_TESTS_H_
2 #define MSP_GL_TESTS_H_
3
4 #include "bindable.h"
5 #include "gl.h"
6 #include "predicate.h"
7
8 namespace Msp {
9 namespace GL {
10
11 /**
12 Tests fragment coordinates against a rectangle.  Any fragments outside the
13 rectangle are discarded.
14 */
15 class ScissorTest: public Bindable<ScissorTest>
16 {
17 private:
18         int left;
19         int bottom;
20         unsigned width;
21         unsigned height;
22
23 public:
24         ScissorTest();
25         ScissorTest(int, int, unsigned, unsigned);
26
27         void bind() const;
28
29         static void unbind();
30 };
31
32 } // namespace GL
33 } // namespace Msp
34
35 #endif