X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwindingtest.h;fp=source%2Fwindingtest.h;h=0000000000000000000000000000000000000000;hb=7aaec9a70b8d7733429bec043f8e33e02956f266;hp=ffc52556bfaa5e9b6df35c5345e1afb212fdacab;hpb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;p=libs%2Fgl.git diff --git a/source/windingtest.h b/source/windingtest.h deleted file mode 100644 index ffc52556..00000000 --- a/source/windingtest.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef MSP_GL_WINDINGTEST_H_ -#define MSP_GL_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