X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftests.h;h=f7d729504a37f34b477a635675197f4166c29791;hb=HEAD;hp=02e5f929475130236e5c43f48de96f2c0ff3cfee;hpb=fb5da1dff367740868f3cbc5badffb1b4837d82a;p=libs%2Fgl.git diff --git a/source/tests.h b/source/tests.h deleted file mode 100644 index 02e5f929..00000000 --- a/source/tests.h +++ /dev/null @@ -1,83 +0,0 @@ -/* $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_ - -#include "bindable.h" -#include "gl.h" -#include "predicate.h" - -namespace Msp { -namespace GL { - -/** -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(); -}; - - -/** -Tests incoming fragment depth values against the depth buffer. If the test -fails, the fragment is discarded. -*/ -class DepthTest: public Bindable -{ -private: - bool write; - Predicate pred; - -public: - DepthTest(); - DepthTest(Predicate, bool = true); - - void bind() const; - - static const DepthTest &lequal(); - static void unbind(); -}; - - -/** -Tests fragment coordinates against a rectangle. Any fragments outside the -rectangle are discarded. -*/ -class ScissorTest: public Bindable -{ -private: - int left; - int bottom; - unsigned width; - unsigned height; - -public: - ScissorTest(); - ScissorTest(int, int, unsigned, unsigned); - - void bind() const; - - static void unbind(); -}; - -} // namespace GL -} // namespace Msp - -#endif