6 DepthTest::DepthTest():
11 DepthTest::DepthTest(Predicate p, bool w):
16 void DepthTest::bind() const
20 glEnable(GL_DEPTH_TEST);
26 const DepthTest &DepthTest::lequal()
28 static DepthTest test(LEQUAL);
32 void DepthTest::unbind()
36 glDisable(GL_DEPTH_TEST);
37 // Allow glClear(GL_DEPTH_BUFFER_BIT) to work
43 ScissorTest::ScissorTest():
50 ScissorTest::ScissorTest(int l, int b, unsigned w, unsigned h):
57 void ScissorTest::bind() const
61 glEnable(GL_SCISSOR_TEST);
62 glScissor(left, bottom, width, height);
66 void ScissorTest::unbind()
69 glDisable(GL_SCISSOR_TEST);