]> git.tdb.fi Git - libs/gl.git/blobdiff - source/misc.cpp
Add projection functions
[libs/gl.git] / source / misc.cpp
index 67b2a14266ea8c231d24f724bb4e94cf49e7df8c..9815383a793ade89f5e7b5d23221af70b77e7a1b 100644 (file)
@@ -10,12 +10,22 @@ Distributed under the LGPL
 namespace Msp {
 namespace GL {
 
+void enable(GLenum state)
+{
+       glEnable(state);
+}
+
+void disable(GLenum state)
+{
+       glDisable(state);
+}
+
 void set(GLenum state, bool value)
 {
        if(value)
-               glEnable(state);
+               enable(state);
        else
-               glDisable(state);
+               disable(state);
 }
 
 } // namespace GL