X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fwindingtest.h;h=ffc52556bfaa5e9b6df35c5345e1afb212fdacab;hp=d8a4c421722ed6997ab5f4162f10a74813e5d5f8;hb=HEAD;hpb=e7556941c41b1a0fc84fe7986c98ee79eccbf564 diff --git a/source/windingtest.h b/source/windingtest.h deleted file mode 100644 index d8a4c421..00000000 --- a/source/windingtest.h +++ /dev/null @@ -1,46 +0,0 @@ -#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(); - - const WindingTest &get_reverse() const; - - static const WindingTest &clockwise(); - static const WindingTest &counterclockwise(); -}; - -} // namespace GL -} // namespace Msp - -#endif