X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftests.cpp;fp=source%2Fcore%2Ftests.cpp;h=0000000000000000000000000000000000000000;hb=ce3658993ce2f6b7527a04a36a5e1af349c6f2e9;hp=0bbec053c01ef3a5adee0ba0c31deba3a5af8b6b;hpb=2b2676392aff2eb6b38c3e463cc67f4d67a4ef8b;p=libs%2Fgl.git diff --git a/source/core/tests.cpp b/source/core/tests.cpp deleted file mode 100644 index 0bbec053..00000000 --- a/source/core/tests.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "tests.h" - -namespace Msp { -namespace GL { - -ScissorTest::ScissorTest(): - left(0), - bottom(0), - width(1), - height(1) -{ } - -ScissorTest::ScissorTest(int l, int b, unsigned w, unsigned h): - left(l), - bottom(b), - width(w), - height(h) -{ } - -void ScissorTest::bind() const -{ - if(set_current(this)) - { - glEnable(GL_SCISSOR_TEST); - glScissor(left, bottom, width, height); - } -} - -void ScissorTest::unbind() -{ - if(set_current(0)) - glDisable(GL_SCISSOR_TEST); -} - -} // namespace GL -} // namespace Msp