-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <msp/gl/extensions/arb_shader_objects.h>
#include "misc.h"
namespace Msp {
disable(state);
}
+int get_i(GLenum state)
+{
+ int data;
+ glGetIntegerv(state, &data);
+ return data;
+}
+
+int get_shader_i(unsigned id, GLenum state)
+{
+ int data;
+ glGetShaderiv(id, state, &data);
+ return data;
+}
+
+int get_program_i(unsigned id, GLenum state)
+{
+ int data;
+ glGetProgramiv(id, state, &data);
+ return data;
+}
+
} // namespace GL
} // namespace Msp