]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/tests.cpp
Convert framebuffers and related functionality to new state management
[libs/gl.git] / source / core / tests.cpp
diff --git a/source/core/tests.cpp b/source/core/tests.cpp
deleted file mode 100644 (file)
index 0bbec05..0000000
+++ /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