New Parameter function to setup glsl programs that use geometry shaders

This commit is contained in:
Paolo Cignoni 2008-10-09 08:58:57 +00:00
parent 5d25249427
commit 117c2a06de
1 changed files with 6 additions and 0 deletions

View File

@ -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<Shader *> shaders;
bool linked;