X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fwindingtest.h;fp=source%2Fcore%2Fwindingtest.h;h=0000000000000000000000000000000000000000;hb=fe9836f2d8d7abb0480582c544611a5b248310cc;hp=ff5b417d5a0a28ee77ccc502e481e9ff23fd6229;hpb=9b3bce7ae76ff8c0c81315d2505ea96bf422a318;p=libs%2Fgl.git diff --git a/source/core/windingtest.h b/source/core/windingtest.h deleted file mode 100644 index ff5b417d..00000000 --- a/source/core/windingtest.h +++ /dev/null @@ -1,47 +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); - - FaceWinding get_winding() const { return winding; } - - void bind() const; - - static void unbind(); - - const WindingTest &get_reverse() const; - - static const WindingTest &clockwise(); - static const WindingTest &counterclockwise(); -}; - -} // namespace GL -} // namespace Msp - -#endif