X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftests.cpp;h=8e24bb52facc436a0a75451a57726737a574bb22;hp=f8489ede9cfee6787520265d1bc5e1b5cc655a4a;hb=f1b12c992db974c679d85ae6ec22cd318199d0d5;hpb=67538c60b8baa6816b8ae2d343ae62d881e6c58d diff --git a/source/tests.cpp b/source/tests.cpp index f8489ede..8e24bb52 100644 --- a/source/tests.cpp +++ b/source/tests.cpp @@ -3,32 +3,6 @@ namespace Msp { namespace GL { -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)