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