]> git.tdb.fi Git - libs/gl.git/blobdiff - source/misc.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / misc.cpp
diff --git a/source/misc.cpp b/source/misc.cpp
deleted file mode 100644 (file)
index c09d17f..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "misc.h"
-
-namespace Msp {
-namespace GL {
-
-void enable(GLenum state)
-{
-       glEnable(state);
-}
-
-void disable(GLenum state)
-{
-       glDisable(state);
-}
-
-void set(GLenum state, bool value)
-{
-       if(value)
-               enable(state);
-       else
-               disable(state);
-}
-
-void get(GLenum state, int &data)
-{
-       glGetIntegerv(state, &data);
-}
-
-void get(GLenum state, int *data)
-{
-       glGetIntegerv(state, data);
-}
-
-int get_i(GLenum state)
-{
-       int data;
-       get(state, &data);
-       return data;
-}
-
-} // namespace GL
-} // namespace Msp