From: Mikko Rasa Date: Wed, 4 May 2011 13:32:16 +0000 (+0000) Subject: Drop the global *_test constants and related functions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=fb5da1dff367740868f3cbc5badffb1b4837d82a;p=libs%2Fgl.git Drop the global *_test constants and related functions --- diff --git a/source/tests.cpp b/source/tests.cpp index 1a2a5835..08580d4d 100644 --- a/source/tests.cpp +++ b/source/tests.cpp @@ -35,11 +35,6 @@ void AlphaTest::unbind() glDisable(GL_ALPHA_TEST); } -void alpha_func(Predicate func, float ref) -{ - glAlphaFunc(func, ref); -} - DepthTest::DepthTest(): write(true), @@ -77,11 +72,6 @@ void DepthTest::unbind() } } -void depth_func(Predicate func) -{ - glDepthFunc(func); -} - ScissorTest::ScissorTest(): left(0), @@ -112,10 +102,5 @@ void ScissorTest::unbind() glDisable(GL_SCISSOR_TEST); } -void scissor(int left, int bottom, unsigned width, unsigned height) -{ - glScissor(left, bottom, width, height); -} - } // namespace GL } // namespace Msp diff --git a/source/tests.h b/source/tests.h index 75d15036..02e5f929 100644 --- a/source/tests.h +++ b/source/tests.h @@ -15,13 +15,6 @@ Distributed under the LGPL namespace Msp { namespace GL { -enum -{ - SCISSOR_TEST = GL_SCISSOR_TEST, - ALPHA_TEST = GL_ALPHA_TEST, - DEPTH_TEST = GL_DEPTH_TEST -}; - /** Tests incoming fragment alpha values against a reference. If the test fails, the fragment is discarded. @@ -41,8 +34,6 @@ public: static void unbind(); }; -void alpha_func(Predicate func, float ref); - /** Tests incoming fragment depth values against the depth buffer. If the test @@ -64,8 +55,6 @@ public: static void unbind(); }; -void depth_func(Predicate func); - /** Tests fragment coordinates against a rectangle. Any fragments outside the @@ -88,8 +77,6 @@ public: static void unbind(); }; -void scissor(int left, int bottom, unsigned width, unsigned height); - } // namespace GL } // namespace Msp