X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwindingtest.h;h=ffc52556bfaa5e9b6df35c5345e1afb212fdacab;hb=refs%2Fheads%2Fmaster;hp=7ef36942e9b5b24c019df3f1a3b92db313f3fa9f;hpb=28e0d3968ae72b0df0e7193a417eb30d1097f734;p=libs%2Fgl.git diff --git a/source/windingtest.h b/source/windingtest.h deleted file mode 100644 index 7ef36942..00000000 --- a/source/windingtest.h +++ /dev/null @@ -1,45 +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: - 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