-void scissor(int left, int bottom, unsigned width, unsigned height)
+AlphaTest::AlphaTest():
+ pred(ALWAYS),
+ ref(0)
+{ }
+
+AlphaTest::AlphaTest(Predicate p, float r):
+ pred(p),
+ ref(r)
+{ }
+
+void AlphaTest::bind() const
+{
+ if(set_current(this))
+ {
+ glEnable(GL_ALPHA_TEST);
+ glAlphaFunc(pred, ref);
+ }
+}
+
+void AlphaTest::unbind()
+{
+ if(set_current(0))
+ glDisable(GL_ALPHA_TEST);
+}
+
+
+DepthTest::DepthTest():
+ write(true),
+ pred(LESS)
+{ }
+
+DepthTest::DepthTest(Predicate p, bool w):
+ write(w),
+ pred(p)
+{ }
+
+void DepthTest::bind() const
+{
+ if(set_current(this))
+ {
+ glEnable(GL_DEPTH_TEST);
+ glDepthFunc(pred);
+ glDepthMask(write);
+ }
+}
+
+const DepthTest &DepthTest::lequal()