]> git.tdb.fi Git - libs/gl.git/blobdiff - source/windingtest.h
Fix a bug in ProgramData when all uniforms in a block are removed
[libs/gl.git] / source / windingtest.h
index 948f190b801ec34122d450f20a9b9b068eb654d1..ffc52556bfaa5e9b6df35c5345e1afb212fdacab 100644 (file)
@@ -1,12 +1,5 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#ifndef WINDINGTEST_H_
-#define WINDINGTEST_H_
+#ifndef MSP_GL_WINDINGTEST_H_
+#define MSP_GL_WINDINGTEST_H_
 
 #include <msp/strings/lexicalcast.h>
 #include "bindable.h"
@@ -30,7 +23,6 @@ match the winding, the polygon is not rendered.
 class WindingTest: public Bindable<WindingTest>
 {
 private:
-       bool test;
        FaceWinding winding;
 
 public:
@@ -41,8 +33,10 @@ public:
 
        static void unbind();
 
-       static WindingTest &clockwise();
-       static WindingTest &counterclockwise();
+       const WindingTest &get_reverse() const;
+
+       static const WindingTest &clockwise();
+       static const WindingTest &counterclockwise();
 };
 
 } // namespace GL