Crazy suggestion to make my life easier.
Ability to dictate the location of a uniform (like you can with attributes).
Then I can do this:-
class MyShader
{
void init(GLhandleARB hShader)
{
glSetUniformLocation(hShader, "uni_bumpScale", (GLuint)&uni_bumpScale);
}
void bind()
{
glUniform1f(&uni_bumpScale, uni_bumpScale);
}
float uni_bumpScale;
};