X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftests.h;h=f7d729504a37f34b477a635675197f4166c29791;hp=75d15036c64a12a2148abfaa0ce6f7d88f20ca1f;hb=d901696935a6bf9fdad6ac8abe65ffab79bd297d;hpb=42ace9ac1350d3ae009bdd2fb335ac1e57d1b36b diff --git a/source/tests.h b/source/tests.h index 75d15036..f7d72950 100644 --- a/source/tests.h +++ b/source/tests.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007, 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_TESTS_H_ #define MSP_GL_TESTS_H_ @@ -15,35 +8,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. -*/ -class AlphaTest: public Bindable -{ -private: - Predicate pred; - float ref; - -public: - AlphaTest(); - AlphaTest(Predicate, float); - - void bind() const; - - static void unbind(); -}; - -void alpha_func(Predicate func, float ref); - - /** Tests incoming fragment depth values against the depth buffer. If the test fails, the fragment is discarded. @@ -64,8 +28,6 @@ public: static void unbind(); }; -void depth_func(Predicate func); - /** Tests fragment coordinates against a rectangle. Any fragments outside the @@ -88,8 +50,6 @@ public: static void unbind(); }; -void scissor(int left, int bottom, unsigned width, unsigned height); - } // namespace GL } // namespace Msp