]> git.tdb.fi Git - libs/gl.git/blobdiff - source/tests.cpp
Avoid some brain damage from Windows headers
[libs/gl.git] / source / tests.cpp
index 1a2a58352e2605a54669093c5cb4e2011557c774..8e24bb52facc436a0a75451a57726737a574bb22 100644 (file)
@@ -1,46 +1,8 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007, 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "tests.h"
 
 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);
-}
-
-void alpha_func(Predicate func, float ref)
-{
-       glAlphaFunc(func, ref);
-}
-
-
 DepthTest::DepthTest():
        write(true),
        pred(LESS)
@@ -77,11 +39,6 @@ void DepthTest::unbind()
        }
 }
 
-void depth_func(Predicate func)
-{
-       glDepthFunc(func);
-}
-
 
 ScissorTest::ScissorTest():
        left(0),
@@ -112,10 +69,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