]> git.tdb.fi Git - libs/gl.git/blobdiff - source/misc.h
Add missing includes
[libs/gl.git] / source / misc.h
index 7aa8aaf9e7fb6d41c3d4acc893b464d581675b51..32adc9bf04794a37ff5f1d3cdd718dddacf03d92 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_MISC_H_
 #define MSP_GL_MISC_H_
 
@@ -17,33 +10,9 @@ void enable(GLenum);
 void disable(GLenum);
 void set(GLenum, bool);
 
-void get(GLenum, int &);
 int get_i(GLenum);
-
-class Bind
-{
-private:
-       struct Base
-       {
-               virtual ~Base() { }
-       };
-
-       template<typename T>
-       struct Binder: Base
-       {
-               const T &obj;
-
-               Binder(const T &o): obj(o) { obj.bind(); }
-               ~Binder() { obj.unbind(); }
-       };
-
-       Base *binder;
-
-public:
-       template<typename T>
-       Bind(const T &o): binder(new Binder<T>(o)) { }
-       ~Bind() { delete binder; }
-};
+int get_shader_i(unsigned, GLenum);
+int get_program_i(unsigned, GLenum);
 
 } // namespace GL
 } // namespace Msp