X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftests.cpp;h=0bbec053c01ef3a5adee0ba0c31deba3a5af8b6b;hp=e1ad526115b5386a8c5007cf1e7a9563f52d8498;hb=2b2676392aff2eb6b38c3e463cc67f4d67a4ef8b;hpb=669e9bfc18d2f5e28a9c715e1a69b7637a2d9c8b diff --git a/source/core/tests.cpp b/source/core/tests.cpp index e1ad5261..0bbec053 100644 --- a/source/core/tests.cpp +++ b/source/core/tests.cpp @@ -3,43 +3,6 @@ namespace Msp { namespace GL { -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(get_gl_predicate(pred)); - glDepthMask(write); - } -} - -const DepthTest &DepthTest::lequal() -{ - static DepthTest test(LEQUAL); - return test; -} - -void DepthTest::unbind() -{ - if(set_current(0)) - { - glDisable(GL_DEPTH_TEST); - // Allow glClear(GL_DEPTH_BUFFER_BIT) to work - glDepthMask(true); - } -} - - ScissorTest::ScissorTest(): left(0), bottom(0),