X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwindingtest.h;h=ffc52556bfaa5e9b6df35c5345e1afb212fdacab;hb=refs%2Fheads%2Fmaster;hp=948f190b801ec34122d450f20a9b9b068eb654d1;hpb=635d00bc1a9ba43ef1224681a14d0710a098cf87;p=libs%2Fgl.git diff --git a/source/windingtest.h b/source/windingtest.h deleted file mode 100644 index 948f190b..00000000 --- a/source/windingtest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef WINDINGTEST_H_ -#define WINDINGTEST_H_ - -#include -#include "bindable.h" -#include "gl.h" - -namespace Msp { -namespace GL { - -enum FaceWinding -{ - CLOCKWISE = GL_CW, - COUNTERCLOCKWISE = GL_CCW -}; - -void operator>>(const LexicalConverter &, FaceWinding &); - -/** -Tests the winding of polygons. If the order of vertices on screen does not -match the winding, the polygon is not rendered. -*/ -class WindingTest: public Bindable -{ -private: - bool test; - FaceWinding winding; - -public: - WindingTest(); - WindingTest(FaceWinding); - - void bind() const; - - static void unbind(); - - static WindingTest &clockwise(); - static WindingTest &counterclockwise(); -}; - -} // namespace GL -} // namespace Msp - -#endif