1 #include "windingtest.h"
6 void operator>>(const LexicalConverter &conv, FaceWinding &winding)
8 if(conv.get()=="CLOCKWISE")
10 else if(conv.get()=="COUNTERCLOCKWISE")
11 winding = COUNTERCLOCKWISE;
13 throw InvalidParameterValue("Invalid FaceWinding");
16 WindingTest::WindingTest():
18 winding(COUNTERCLOCKWISE)
21 WindingTest::WindingTest(FaceWinding w):
26 void WindingTest::bind() const
32 glEnable(GL_CULL_FACE);
36 glDisable(GL_CULL_FACE);
40 void WindingTest::unbind()
43 glDisable(GL_CULL_FACE);
46 WindingTest &WindingTest::clockwise()
48 static WindingTest test(CLOCKWISE);
52 WindingTest &WindingTest::counterclockwise()
54 static WindingTest test(COUNTERCLOCKWISE);