Hi
The “SuperBible” has a chapter, where it describes how to change brightness and contrast. I implemented this function and tested it, but it has no effect. There seem to be no errors, however nothing changes in my program. Maybe one of you knows if there is something missing.
void Brightness (float bright)
{
if (strstr ((const char*) glGetString (GL_EXTENSIONS), “ARB_imaging”) == NULL)
{
//ARB_imaging not supported
return;
}glGetError ();
//switch to color matrix
glMatrixMode (GL_COLOR);if (glGetError () != GL_NO_ERROR)
return;//change brightness
glTranslatef (bright, bright, bright);if (glGetError () != GL_NO_ERROR)
return;//switch back to modelview matrix
glMatrixMode (GL_MODELVIEW);if (glGetError () != GL_NO_ERROR)
return;
}
I checked it, glGetError does not report any error.
Jan.