glDisable(GL_CULL_FACE);
}
-WindingTest &WindingTest::clockwise()
+const WindingTest &WindingTest::get_reverse() const
+{
+ if(!test)
+ return *this;
+ else if(winding==CLOCKWISE)
+ return counterclockwise();
+ else
+ return clockwise();
+}
+
+const WindingTest &WindingTest::clockwise()
{
static WindingTest test(CLOCKWISE);
return test;
}
-WindingTest &WindingTest::counterclockwise()
+const WindingTest &WindingTest::counterclockwise()
{
static WindingTest test(COUNTERCLOCKWISE);
return test;