From 117c2a06de2bc0744f6efd5f83da934507a9fccb Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Thu, 9 Oct 2008 08:58:57 +0000 Subject: [PATCH] New Parameter function to setup glsl programs that use geometry shaders --- wrap/gl/shaders.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wrap/gl/shaders.h b/wrap/gl/shaders.h index 0a7de869..b1df0369 100644 --- a/wrap/gl/shaders.h +++ b/wrap/gl/shaders.h @@ -487,6 +487,12 @@ public: glUniform4f(loc, x, y, z, w); } + void Parameter(GLenum pname, int value) + { + glProgramParameteriEXT(this->objectID, pname, value); + } + + protected: std::set shaders; bool linked;