-/* $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);
}
-void get(GLenum state, int &data)
+int get_i(GLenum state)
{
+ int data;
glGetIntegerv(state, &data);
+ return data;
}
-int get_i(GLenum state)
+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;
- get(state, data);
+ glGetProgramiv(id, state, &data);
return data;
}